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/
|
deps/
|
||||||
|
counter.txt
|
||||||
data/
|
data/
|
||||||
discordia.log
|
discordia.log
|
||||||
gateway.json
|
gateway.json
|
||||||
|
|
6
bot.lua
6
bot.lua
|
@ -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
|
||||||
|
|
Reference in a new issue