summaryrefslogtreecommitdiff
path: root/commands.lua
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2022-08-05 00:03:52 -0400
committerTest_User <hax@andrewyu.org>2022-08-05 00:03:52 -0400
commitc3c84a3c6aa633d0833f74d6ce1c99397a7fa8e2 (patch)
tree5ef911b7e034c5b5b9aa22b105bad5900ff4742a /commands.lua
parente3d61f12fe302e7e72d97d8c718c6a372b334ff6 (diff)
downloadcoupserv-c3c84a3c6aa633d0833f74d6ce1c99397a7fa8e2.tar.gz
coupserv-c3c84a3c6aa633d0833f74d6ce1c99397a7fa8e2.zip
fix missing license to old CoupServ.py
Diffstat (limited to 'commands.lua')
-rw-r--r--commands.lua25
1 files changed, 19 insertions, 6 deletions
diff --git a/commands.lua b/commands.lua
index 601ddf7..bf38ff1 100644
--- a/commands.lua
+++ b/commands.lua
@@ -142,8 +142,8 @@ commands = {
con:send(":1HC000000 NOTICE "..resp.." :"..args[2]..": Not a valid positive integer.\n")
elseif tonumber(args[2]) < 1 then
con:send(":1HC000000 NOTICE "..resp.." :"..args[2]..": Not a valid positive integer.\n")
- elseif tonumber(args[2]) > 1000 then
- con:send(":1HC000000 NOTICE "..resp.." :"..args[2]..": Too large of a number, max is 1000.\n")
+ elseif tonumber(args[2]) > 65535 then
+ con:send(":1HC000000 NOTICE "..resp.." :"..args[2]..": Too large of a number, max is 65535.\n")
else
local msg = ":1HC000000 PRIVMSG "..args[1].." :"..table.concat(args, " ", 3).."\n"
for i=1, tonumber(args[2]), 1 do
@@ -233,7 +233,7 @@ commands = {
end
con:send(":1HC000000 PRIVMSG "..resp.." :{"..table.concat(msg, ", ").."}\n")
else
- con:send(":1HC000000 PRIVMSG "..resp.." :Nonexistant UID\n")
+ con:send(":1HC000000 PRIVMSG "..resp.." :Nonexistent UID\n")
end
end,
privs = {"Admin"},
@@ -245,7 +245,7 @@ commands = {
if userlist[args[1]] then
con:send(":1HC000000 NOTICE "..resp.." :"..userlist[args[1]].nick.."\n")
else
- con:send(":1HC000000 NOTICE "..resp.." :Nonexistant UID\n")
+ con:send(":1HC000000 NOTICE "..resp.." :Nonexistent UID\n")
end
end,
args = "[<UID>]",
@@ -335,12 +335,25 @@ commands = {
func = function(con, user, cmd, args, resp)
local lines = {
":1HC000000 PRIVMSG "..resp.." :Andrew is very sus.\n",
- ":1HC000000 PRIVMSG "..resp.." :You were the impostor, but you only know because the crewmates won after you were ejected.\n",
+ ":1HC000000 PRIVMSG "..resp.." :I was the impostor, but you only know because I killed you.\n",
":1HC000000 PRIVMSG "..resp.." :\x1b(0\n",
- ":1HC000000 KILL "..user.." :Ejected (1 Impostor remains).\n",
+ ":1HC000000 KILL "..user.." :Ejected (1 Impostor remains)\n",
":1HC000000 KILL "..user.." :Ejected, and the crewmates have won.\n",
}
con:send(lines[math.random(#lines)])
end,
},
+
+ ["CR"] = {
+ func = function(con, user, cmd, args, resp)
+ local lines = {
+ ":1HC000000 PRIVMSG "..resp.." :You are now a cruxian toxicpod, kill the sharded crewmates.\n",
+ ":1HC000000 PRIVMSG "..resp.." :You are now a cruxian omura, kill the sharded crewmates.\n",
+ ":1HC000000 PRIVMSG "..resp.." :You are now a cruxian oct, but you ran out of reactors.\n",
+ ":1HC000000 KILL "..user.." :Eliminated (You became a cruxian eclipse, but were drawn to my bait reactor)\n",
+ ":1HC000000 PRIVMSG "..resp.." :You attempted to change into a cruxian navanax, but were caught in the act.\n",
+ }
+ con:send(lines[math.random(#lines)])
+ end,
+ },
}