diff --git a/bot.lua b/bot.lua index d57a5b7..d36f616 100644 --- a/bot.lua +++ b/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