=Updated ForbiddenWord
Changed output to ForbiddenWord
This commit is contained in:
+2
-1
@@ -64,4 +64,5 @@ rp\.txt
|
|||||||
Rp\.txt
|
Rp\.txt
|
||||||
rP\.txt
|
rP\.txt
|
||||||
|
|
||||||
.log
|
.log
|
||||||
|
*.log
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
local time = os.time();
|
local time = os.time();
|
||||||
|
|
||||||
function plugin(message)
|
function plugin(message, user)
|
||||||
if(string.match(message, "purple"))then
|
if(string.match(string.lower(message), "purple"))then
|
||||||
local timedif = os.time() - time;
|
local timedif = os.time() - time;
|
||||||
time = os.time();
|
time = os.time();
|
||||||
days = (timedif / (60*60*24));
|
days = (timedif / (60*60*24));
|
||||||
hours = ((timedif / (60*60)) % 24);
|
hours = ((timedif / (60*60)) % 24);
|
||||||
mins = ((timedif / (60)) % 60);
|
mins = ((timedif / (60)) % 60);
|
||||||
secs = timedif % 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
|
end
|
||||||
|
|
||||||
return nil;
|
return nil;
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ import java.util.stream.Stream;
|
|||||||
|
|
||||||
import org.luaj.vm2.Globals;
|
import org.luaj.vm2.Globals;
|
||||||
import org.luaj.vm2.LuaValue;
|
import org.luaj.vm2.LuaValue;
|
||||||
import org.luaj.vm2.lib.jse.CoerceJavaToLua;
|
|
||||||
import org.luaj.vm2.lib.jse.JsePlatform;
|
import org.luaj.vm2.lib.jse.JsePlatform;
|
||||||
|
|
||||||
// To promote flexibility, plugins are lua file with predefined callbacks.
|
// To promote flexibility, plugins are lua file with predefined callbacks.
|
||||||
|
|||||||
Reference in New Issue
Block a user