From c3c84a3c6aa633d0833f74d6ce1c99397a7fa8e2 Mon Sep 17 00:00:00 2001 From: Test_User Date: Fri, 5 Aug 2022 00:03:52 -0400 Subject: fix missing license to old CoupServ.py --- commands.lua | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) (limited to 'commands.lua') 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 = "[]", @@ -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, + }, } -- cgit v1.2.3