From 0327db322f6a6eebc6b961bb4f6aec19fa200599 Mon Sep 17 00:00:00 2001 From: Astoria Floyd Date: Fri, 6 Aug 2021 22:37:35 -0500 Subject: [PATCH] A correction --- bot.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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)