Files
  • main.py
  • Userhelp Folder
  • LuaH Discord Emoji.png
  • LuaH Logo.png
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#LuaH by Jay Webster and Harvey Hellewell

#Imports
import time
import random

bgreen = '\033[1;32m' # bold green
byellow = '\033[1;33m' # bold yellow
bred = '\033[1;31m' # bold red
bblue = '\033[1;34m' # bold blue
bpink = '\033[1;35m' # bold pink
bcyan = '\033[1;36m' # bold cyan
bwhite = '\033[1;37m' # bold white
bold = '\033[1;39m' # bold regular writing
bblack = '\033[1;30m' # bold black
bblackbox = '\033[1;40m' # bold black box
bredbox = '\033[1;41m' # bold red box
bgreenbox = '\033[1;42m' # bold green box
byellowbox = '\033[1;43m' # bold yellow box
bbluebox = '\033[1;44m' # bold blue box
bpinkbox = '\033[1;45m' # bold pink box
bcyanbox = '\033[1;46m' # bold cyan box
green = '\033[32m' # green
yellow = '\033[33m' # yellow
red = '\033[31m' # red
blue = '\033[34m' # blue
pink = '\033[35m' # pink
cyan = '\033[36m' # cyan
white = '\033[37m' # white
black = '\033[30m' # black
blackbox = '\033[40m' # black box
redbox = '\033[41m' # red box
greenbox = '\033[42m' # green box
yellowbox = '\033[43m' # yellow box
bluebox = '\033[44m' # blue box
pinkbox = '\033[45m' # pink box
cyanbox = '\033[46m' # cyan box
custom = '\033[5m' # to customize, change the '00' bit
bcustom = '\033[31;5m' # same as custom but you can also change the '31' bit. If you change the '31' bit to 1, it will be bold.

X = '\033[0m'

#Functions
def output(func, arg1=0, arg2=0, arg3=0, arg4=0):
	if func == "state":
		time.sleep(arg2)
		print(arg1)
	if func == "warn":
		time.sleep(arg2)
		print("WARNING: " + arg1)
	if func == "celebrate":
		time.sleep(arg2)
		print("Hooray, " + arg1 + "!")
	if func == "error":
		time.sleep(arg2)
		print("ERROR: " + arg1 + "! Notice: That was NOT a real error message... ")
	if func == "number":
		time.sleep(arg2)
		print("The number " + str(arg1) + ".")
	if func == "colour":
	  print(arg1)

def calc(func1, arg5=0, arg6=0, arg7=0):
	if func1=="add":
		time.sleep(arg7)
		answer = arg5 + arg6
		print(str(arg5) + " + " + str(arg6) + " = " + str(answer))
	if func1=="subtract":
		time.sleep(arg7)
		answer2 = arg5 - arg6
		print(str(arg5) + " - " + str(arg6) + " = " + str(answer2))
	if func1=="multiply":
		time.sleep(arg7)
		answer3 = arg5*arg6
		print(str(arg5) + " X " + str(arg6) + " = " + str(answer3))
	if func1 =="divide":
		time.sleep(arg7)
		answer4 = arg5/arg6
		print(str(arg5) + " / " + str(arg6) + " = " + str(answer4))

true = True
false = False
wait = time.sleep
mix = random
mix.number = random.randint


##################ENVIRONMENT##################Example: output("state", "Hello World", 1)

wait(5)
output("state", "chicken nugget", 1)