|
|
@ -12,6 +12,7 @@ end)
|
|
|
|
client:on('messageCreate', function(message)
|
|
|
|
client:on('messageCreate', function(message)
|
|
|
|
if tools.messageDectection(message, "lenny") == true then
|
|
|
|
if tools.messageDectection(message, "lenny") == true then
|
|
|
|
message.channel:send("( ͡° ͜ʖ ͡°)")
|
|
|
|
message.channel:send("( ͡° ͜ʖ ͡°)")
|
|
|
|
|
|
|
|
message:delete()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end)
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
|
@ -34,6 +35,15 @@ client:on('messageCreate', function(message)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end)
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
client:on('userBan', function()
|
|
|
|
|
|
|
|
local banChannel, err = client:getChannel("872283716486066200")
|
|
|
|
|
|
|
|
if not banChannel then
|
|
|
|
|
|
|
|
p("Attempt to fetch the channel object: ", err)
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
banChannel:send("User was banned ( ͡° ͜ʖ ͡°)")
|
|
|
|
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
|
|
client:on('messageCreate', function(message)
|
|
|
|
client:on('messageCreate', function(message)
|
|
|
|
if tools.messageDectection(message, "fire") == true then
|
|
|
|
if tools.messageDectection(message, "fire") == true then
|
|
|
|
message.channel:send('https://tenor.com/view/elmo-fire-burn-flame-gif-5042503')
|
|
|
|
message.channel:send('https://tenor.com/view/elmo-fire-burn-flame-gif-5042503')
|
|
|
@ -83,6 +93,16 @@ client:on('messageCreate', function(message)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end)
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
client:on('messageCreate', function(message)
|
|
|
|
|
|
|
|
if tools.messageDectection(message, "echo ") == true then
|
|
|
|
|
|
|
|
local echo = string.sub(message.content, 7)
|
|
|
|
|
|
|
|
local echoed = basicCommands.echo(echo)
|
|
|
|
|
|
|
|
local result = "```fix" .. "\n" .. echoed .. "```"
|
|
|
|
|
|
|
|
message.channel:send(result)
|
|
|
|
|
|
|
|
message:delete()
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
|
|
client:on('messageCreate', function(message)
|
|
|
|
client:on('messageCreate', function(message)
|
|
|
|
if tools.messageDectection(message, "welsh") == true then
|
|
|
|
if tools.messageDectection(message, "welsh") == true then
|
|
|
|
image = "https://cdn.discordapp.com/attachments/748713417489252503/770289379586867231/image0.gif"
|
|
|
|
image = "https://cdn.discordapp.com/attachments/748713417489252503/770289379586867231/image0.gif"
|
|
|
|