1
0
Fork 0
forked from threeoh6000/joltik

i am so awesome

This commit is contained in:
abbie 2024-08-05 18:45:42 +01:00
parent 994c386573
commit cb65ea2710
Signed by: threeoh6000
GPG key ID: 801FE4AD456E922C
2 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View file

@ -1,4 +1,5 @@
deps/ deps/
counter.txt
data/ data/
discordia.log discordia.log
gateway.json gateway.json

View file

@ -50,16 +50,16 @@ client:on('messageCreate', function(message)
if message.content == prefix .. 'ping' then if message.content == prefix .. 'ping' 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"))) 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 == 1270071562183245884 then
local counter = load("counter.txt") local counter = load("counter.txt")
counter = tonumber(counter) counter = tonumber(counter)
message:addReaction(":star:") message:addReaction("1")
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' 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