forked from threeoh6000/joltik
more guardrails
This commit is contained in:
parent
863863db53
commit
d0334be5ad
1 changed files with 3 additions and 3 deletions
6
bot.lua
6
bot.lua
|
@ -49,7 +49,7 @@ client:on('ready', function()
|
|||
end)
|
||||
|
||||
client:on('messageCreate', function(message)
|
||||
if message.content == prefix .. 'ping' then
|
||||
if message.content == prefix .. 'ping' and message.author.id == client.owner.id then
|
||||
message.channel:send({embed = {title = "Ping?",description = "Pong!",color = 0x00FFFF}})
|
||||
end
|
||||
if string.find(message.content:lower(), "sako") and ((string.find(message.content:lower(), "shut")) and string.find(message.content:lower(), "up") or (string.find(message.content:lower(), "stfu")) or (string.find(message.content:lower(),"quiet"))) and message.author.id ~= client.user.id then
|
||||
|
@ -59,9 +59,9 @@ client:on('messageCreate', function(message)
|
|||
counter = counter + 1
|
||||
write("counter.txt", tostring(counter))
|
||||
end
|
||||
if message.content == prefix .. 'sacounter' then
|
||||
if message.content == prefix .. 'sacounter' and message.author.id ~= "1152611181601759326" then
|
||||
local counter = load("counter.txt")
|
||||
message.channel:send("**we have told sako to shut up ** ".. counter .. " ** times**")
|
||||
message.channel:send("**we have told sako to shut up ".. counter .. " times**")
|
||||
end
|
||||
if message.content == prefix .. 'shutdown' then
|
||||
if message.author.id == "867901290336223242" then
|
||||
|
|
Reference in a new issue