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)
|
end)
|
||||||
|
|
||||||
client:on('messageCreate', function(message)
|
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}})
|
message.channel:send({embed = {title = "Ping?",description = "Pong!",color = 0x00FFFF}})
|
||||||
end
|
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
|
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
|
counter = counter + 1
|
||||||
write("counter.txt", tostring(counter))
|
write("counter.txt", tostring(counter))
|
||||||
end
|
end
|
||||||
if message.content == prefix .. 'sacounter' then
|
if message.content == prefix .. 'sacounter' and message.author.id ~= "1152611181601759326" then
|
||||||
local counter = load("counter.txt")
|
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
|
end
|
||||||
if message.content == prefix .. 'shutdown' then
|
if message.content == prefix .. 'shutdown' then
|
||||||
if message.author.id == "867901290336223242" then
|
if message.author.id == "867901290336223242" then
|
||||||
|
|
Reference in a new issue