=Updated ForbiddenWord

Changed output to ForbiddenWord
This commit is contained in:
Alex Stewart
2019-04-21 01:37:44 -07:00
parent 05aa2e3b6f
commit aa24708699
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -1,14 +1,14 @@
local time = os.time();
function plugin(message)
if(string.match(message, "purple"))then
function plugin(message, user)
if(string.match(string.lower(message), "purple"))then
local timedif = os.time() - time;
time = os.time();
days = (timedif / (60*60*24));
hours = ((timedif / (60*60)) % 24);
mins = ((timedif / (60)) % 60);
secs = timedif % 60;
return round(days) .. " " .. round(hours) .. " " .. round(mins) .. " " .. round(secs);
return "*GASP!!!* \n" .. user.name .. " said **THE** word! It's been " .. round(days) .. " days, " .. round(hours) .. " hours, " .. round(mins) .. " minutes, and " .. round(secs) .. " seconds since the last time!";
end
return nil;