#based on Working Clock without permission
#come at me, bro.
#
import easyrtc
import ugfx
import badge
import time
import wifi
import random


badge.init()
ugfx.init()
wifi.init()
easyrtc.configure()


first = ['Holy', 'Shitty', 'Jizzy', 'Still', 'Fucking', 'Jaevla', 'Moronic', 'Foul-smelling', 'Drunken', 'Smegging', 'Bloody', 'Stupid', 'Great big', 'Farting', 'Wanky'];
second = [' wanking ', ' shagging ', ' fucking ', ' hacking ', ' cunting ', ' unwashed ', ' Mac-using ', ' jizzing ', ' sharting ', ' elephant ', ' duck ', 'jizzing', 'arsing', 'smegging']
third = ['assballs!', 'dick!', 'anyway!', 'twat!', 'NetBSD!', 'buggery!', 'Mac users!', 'arseboggins!', 'lille lort!', 'douche!', 'douchebag!', 'fuck!', 'arschloch!', 'ornithologist!', 'bollock!', 'wanker!', 'Star Wars enthusiast!']
def cuss():
    t = easyrtc.string()
    ugfx.clear(ugfx.BLACK)
    ugfx.flush()
    ugfx.clear(ugfx.WHITE)
    ugfx.flush()

	#ugfx.string(x, y, string, font, colour)
    ugfx.string(10, 5, str(random.choice(first)), "Roboto_BlackItalic24", ugfx.BLACK)
    ugfx.string(30, 25, str(random.choice(second)), "PermanentMarker36", ugfx.BLACK)
    len = ugfx.get_string_width(str(random.choice(second)),"PermanentMarker36")
    ugfx.line(25, 59, 72 + len, 59, ugfx.BLACK)
    ugfx.string(135, 68, str(random.choice(third)), "Roboto_BlackItalic24", ugfx.BLACK)
    ugfx.string(30, 95, " it's ", "PermanentMarker22", ugfx.BLACK)
    ugfx.string(140, 90, t, "PermanentMarker36", ugfx.BLACK)

    ugfx.flush()
    time.sleep(30)

while True:
    cuss()