forked from threeoh6000/joltik
i am so awesome
This commit is contained in:
parent
994c386573
commit
cb65ea2710
2 changed files with 4 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,4 +1,5 @@
|
|||
deps/
|
||||
counter.txt
|
||||
data/
|
||||
discordia.log
|
||||
gateway.json
|
||||
|
|
6
bot.lua
6
bot.lua
|
@ -50,16 +50,16 @@ client:on('messageCreate', function(message)
|
|||
if message.content == prefix .. 'ping' 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"))) 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")
|
||||
counter = tonumber(counter)
|
||||
message:addReaction(":star:")
|
||||
message:addReaction("1️⃣")
|
||||
counter = counter + 1
|
||||
write("counter.txt", tostring(counter))
|
||||
end
|
||||
if message.content == prefix .. 'sacounter' 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