1
0
Fork 0
forked from threeoh6000/joltik

more guardrails

This commit is contained in:
abbie 2024-08-05 18:59:14 +01:00
parent 863863db53
commit d0334be5ad
Signed by: threeoh6000
GPG key ID: 801FE4AD456E922C

View file

@ -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