From 290f0ce6c9cfdd82c06b989049f945cea04393c6 Mon Sep 17 00:00:00 2001 From: Astoria Floyd Date: Fri, 6 Aug 2021 20:03:11 -0500 Subject: [PATCH] Added new hidden welsh function --- bot.lua | 15 +++++++++++++++ docs/help | 6 +++++- gateway.json | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/bot.lua b/bot.lua index d3ac0de..4fc8c8b 100644 --- a/bot.lua +++ b/bot.lua @@ -58,6 +58,13 @@ client:on('messageCreate', function(message) end end) +client:on('messageCreate', function(message) + if tools.messageDectection(message, "analyze") == true then + print(message.content) + print(message.attachments) + end +end) + client:on('messageCreate', function(message) if tools.messageDectection(message, "figlet ") == true then local figletthis = string.sub(message.content, 9) @@ -76,4 +83,12 @@ client:on('messageCreate', function(message) end end) +client:on('messageCreate', function(message) + if tools.messageDectection(message, "welsh") == true then + image = "https://cdn.discordapp.com/attachments/748713417489252503/770289379586867231/image0.gif" + message.channel:send(image) + message:delete() + end +end) + client:run('Bot ODczMjU1Mjk2MDI0MzIyMDU5.YQ1wXg.BbXq1fu-4nlG95EkLkHujVEObG4') diff --git a/docs/help b/docs/help index 55264c7..d3f344e 100644 --- a/docs/help +++ b/docs/help @@ -1,13 +1,17 @@ ```fix Basic functions --------------- +-figlet +Converts text to ASCII art +-cowsay +Converts text to the speech of a cow -ping Pong! -roll Rolls a d20 -time Displays the time in military time, as if you were in chicago --help +-helpme ^-^ Basic Information ----------------- diff --git a/gateway.json b/gateway.json index 2dbce15..0124440 100644 --- a/gateway.json +++ b/gateway.json @@ -1 +1 @@ -{"url":"wss://gateway.discord.gg","873255296024322059":{"shards":1,"timestamp":1628292687,"owner":{"id":"872299874857676820","flags":1024,"avatar":null,"username":"team872299874857676820","discriminator":"0000","public_flags":1024}}} \ No newline at end of file +{"873255296024322059":{"owner":{"id":"872299874857676820","discriminator":"0000","flags":1024,"username":"team872299874857676820","avatar":null,"public_flags":1024},"timestamp":1628296680,"shards":1},"url":"wss://gateway.discord.gg"} \ No newline at end of file