+Added ForbiddenWord
Added ForbiddenWord plugin
This commit is contained in:
@@ -2,10 +2,18 @@ local time = os.time();
|
||||
|
||||
function plugin(message)
|
||||
if(string.match(message, "purple"))then
|
||||
local response = os.time() - time;
|
||||
local timedif = os.time() - time;
|
||||
time = os.time();
|
||||
return response;
|
||||
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);
|
||||
end
|
||||
|
||||
return nil;
|
||||
end
|
||||
|
||||
function round(num)
|
||||
return math.floor(num + 0.5)
|
||||
end
|
||||
Reference in New Issue
Block a user