+Added ForbiddenWord

Added ForbiddenWord plugin
This commit is contained in:
Alex Stewart
2019-04-21 01:28:21 -07:00
parent 9c204d55cd
commit 77b2660329
5 changed files with 19 additions and 9 deletions
-5
View File
@@ -226,8 +226,3 @@
[Log] [Core] Command registered under key blur [Log] [Core] Command registered under key blur
[Log] [Core] Command registered under key eightball [Log] [Core] Command registered under key eightball
[Log] [Core] Command registered under key 8ball [Log] [Core] Command registered under key 8ball
[Log] [Plugin] Created new PluginLoader lua environment
[Log] [Database] CreateGeyKey: key-392895005024452620
[Log] [Database] CreateGeyKey: key-392895005024452620147407528874082304
[Log] [Database] CreateSetKey: Key-392895005024452620 value-!
[Log] [Database] CreateSetKey: Key-392895005024452620147407528874082304 value-273,4
+1
View File
@@ -39,3 +39,4 @@ guildroleremove=1
guildroleadd=1 guildroleadd=1
guildroleallowed=1 guildroleallowed=1
fetch=1 fetch=1
guildrolenotallowed=1
+1
View File
@@ -12,6 +12,7 @@ blur=
choose= choose=
poll= poll=
rpstart= rpstart=
guildrolenotallowed=
bet= bet=
perish, thenperish= perish, thenperish=
teey= teey=
+7 -2
View File
@@ -1,6 +1,11 @@
[CommandPollManage] [CommandPollManage]
PollManageInfo='start' will start a new poll with the query of the line you put after, 'choice' will add a choice to the poll, 'stop' will end the poll PollManageInfo='start' will start a new poll with the query of the line you put after, 'choice' will add a choice to the poll, 'stop' will end the poll
[CommandGuildRoleNotAllowed]
GuildRoleNotAllowedFailure=
GuildRoleNotAllowedSuccess=
GuildRoleNotAllowedInfo=
[CommandBeansShow] [CommandBeansShow]
BeansShowDisplay=You have %s beans! BeansShowDisplay=You have %s beans!
BeansShowInfo=Displays how many beans you have BeansShowInfo=Displays how many beans you have
@@ -33,8 +38,8 @@ GuildRoleAddInfo=Add a role to yourself!
[CommandRole] [CommandRole]
RoleInfo=Will show the current role you have, Admins can change others roles with input of 'role x @y' with x being blacklist, general, mod, or admin. Blacklist will not allow the user to interact with kitty anymore, general mod and admin will give the user access to those commands. RoleInfo=Will show the current role you have, Admins can change others roles with input of 'role x @y' with x being blacklist, general, mod, or admin. Blacklist will not allow the user to interact with kitty anymore, general mod and admin will give the user access to those commands.
RoleStandardResponse=Your role is RoleStandardResponse=Your role is %s
RoleError=You aren't allowed to do that! You must have the KittyRole '%' or higher! RoleError=You aren't allowed to do that! You must have the KittyRole '%s' or higher!
RoleChanged=Changed %s to role `%s`! RoleChanged=Changed %s to role `%s`!
RoleNeededRole=Please enter `general`, `mod`, or `admin`! RoleNeededRole=Please enter `general`, `mod`, or `admin`!
+10 -2
View File
@@ -2,10 +2,18 @@ local time = os.time();
function plugin(message) function plugin(message)
if(string.match(message, "purple"))then if(string.match(message, "purple"))then
local response = os.time() - time; local timedif = os.time() - time;
time = os.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 end
return nil; return nil;
end
function round(num)
return math.floor(num + 0.5)
end end