-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcm.lua
More file actions
99 lines (67 loc) · 1.96 KB
/
Copy pathcm.lua
File metadata and controls
99 lines (67 loc) · 1.96 KB
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
92
93
94
95
96
97
function piepan.onConnect()
print ("cm module loaded")
math.randomseed( os.time() )
end
nouns = {
"Scrawny",
"mumble",
"refugeegaming",
"RefBot",
"Argyle",
"Fame",
"Cruelnoise",
"MeltedUFO",
"the counter-strike channel",
"Foxy",
"MrMustard",
}
charges = {
"shitposting on the forums",
"embedding too many images in chat",
"existing",
"gross incompetence",
"having sex with " .. nouns[math.random(11)],
"setting fire to " .. nouns[math.random(11)],
"deploying mini-sentries",
"banning " .. nouns[math.random(11)],
"saying the word moist",
"improper conduct with " .. nouns[math.random(11)],
}
punishments = {
"be Argyle's server op slave for all eternity.",
"eat all of your hats.",
"lick " .. nouns[math.random(11)] .. " clean",
"listen to ProfessorZ make bad jokes for 24 hours.",
"listen to a dubstep mix",
"listen to Puddsy talk about keyboards for one full hour.",
"play cp_orange as a pyro.",
"play moonbase alpha as without text to speech.",
"purchase a month's worth of pizza for Ogg Vorbis.",
"ride Scrawny's train until the end of time.",
}
s = function (sleep)
os.execute("sleep " .. tonumber(10))
end
j = function (judge)
if math.random(10) > 3
then
piepan.me.channel:send("You have been found guilty of " .. charges[math.random(10)] .. " and are sentenced to " .. punishments[math.random(10)])
else
piepan.me.channel:send("You have been found innocent, have a nice day :)")
end
end
function piepan.onMessage(message)
local command = string.find(message.text, "!courtmartial")
if message.user == nil
then
return
else
if command == 1
then
local target = string.sub(message.text, 15)
piepan.me.channel:send("Throwing " .. target .. " in the brig to await charges.")
s()
j()
end
end
end