diff --git a/bot.lua b/bot.lua index 63c44e9..58c4bbd 100644 --- a/bot.lua +++ b/bot.lua @@ -25,14 +25,6 @@ client:on('messageCreate', function(message) end end) ---Every time someone says "gif" or some varient of that, often in gifs themselves, it pastes that text. May replace with a copypasta. -client:on('messageCreate', function(message) - if message.author.bot then return end - if tools.messageDectectionAnywhere(message, "gif") == true then - message.channel:send("GIF IS PRONOUNCED WITH A HARD G, ITS NOT JIF OR YIFF") - end -end) - --Ping Pong function, generally just to see if its on or not without triggering a more complex function. Also tests if its really borked. client:on('messageCreate', function(message) if tools.messageDectection(message, "ping") == true then @@ -127,6 +119,14 @@ client:on('userBan', function() banChannel:send("User was banned ( ͡° ͜ʖ ͡°)") end) +--Every time someone says "gif" or some varient of that, often in gifs themselves, it pastes that text. May replace with a copypasta. +client:on('messageCreate', function(message) + if message.author.bot then return end + if tools.messageDectectionAnywhere(message, "gif") == true then + message.channel:send("GIF IS PRONOUNCED WITH A HARD G, ITS NOT JIF OR YIFF") + end +end) + --Insert Token in a .lua file with simply returns it as a string. local token = require("./token.lua") client:run('Bot '..token)