From 256ee5125d231407d55c8ad63d9fa5c4eb74a53e Mon Sep 17 00:00:00 2001 From: Astoria Floyd Date: Fri, 6 Aug 2021 16:56:27 -0500 Subject: [PATCH] not broken, good enough. Modules not working. --- basicCommands.lua | 7 +++ bot.lua | 11 +++-- discordia.log | 119 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 134 insertions(+), 3 deletions(-) create mode 100644 basicCommands.lua create mode 100644 discordia.log diff --git a/basicCommands.lua b/basicCommands.lua new file mode 100644 index 0000000..58be018 --- /dev/null +++ b/basicCommands.lua @@ -0,0 +1,7 @@ +local basicCommands = {} + +function helloWorld() + return("Hello world!") +end + +return basicCommands diff --git a/bot.lua b/bot.lua index 9330c38..8c0cd94 100644 --- a/bot.lua +++ b/bot.lua @@ -1,8 +1,8 @@ local discordia = require('discordia') local client = discordia.Client() +basic = require("./basicCommands.lua") seed = os.time() math.randomseed(seed) -tabletest = {Hello, Hi, Lol} function messageDectection(message, search) distinctMessage = message.content @@ -29,7 +29,8 @@ client:on('messageCreate', function(message) end end) -client:on('ready', function() +client:once("ready", function() + client:setGame("Astoria's bot, very sad!") print('Logged in as '.. client.user.username) end) @@ -57,7 +58,6 @@ client:on('messageCreate', function(message) end end end) - --[[ client:on('messageCreate', function(message) if message.content == '!time' then @@ -73,5 +73,10 @@ client:on('messageCreate', function(message) end end) +client:on('messageCreate', function(message) + if messageDectection(message, "hiddentest") == true then + message.channel:send(basic.helloWorld()) + end +end) client:run('Bot ODczMjU1Mjk2MDI0MzIyMDU5.YQ1wXg.BbXq1fu-4nlG95EkLkHujVEObG4') diff --git a/discordia.log b/discordia.log new file mode 100644 index 0000000..9ca080f --- /dev/null +++ b/discordia.log @@ -0,0 +1,119 @@ +2021-08-06 16:31:09 | [INFO] | Discordia 2.9.1 +2021-08-06 16:31:09 | [INFO] | Connecting to Discord... +2021-08-06 16:31:10 | [INFO] | Authenticated as Thembot#2260 +2021-08-06 16:31:10 | [INFO] | Launching shard 0 (1 out of 1)... +2021-08-06 16:31:10 | [INFO] | Shard 0 : Connected to wss://gateway.discord.gg +2021-08-06 16:31:10 | [INFO] | Shard 0 : Received HELLO +2021-08-06 16:31:10 | [INFO] | Shard 0 : Received READY +2021-08-06 16:32:28 | [INFO] | Discordia 2.9.1 +2021-08-06 16:32:28 | [INFO] | Connecting to Discord... +2021-08-06 16:32:28 | [INFO] | Authenticated as Thembot#2260 +2021-08-06 16:32:28 | [INFO] | Launching shard 0 (1 out of 1)... +2021-08-06 16:32:29 | [INFO] | Shard 0 : Connected to wss://gateway.discord.gg +2021-08-06 16:32:29 | [INFO] | Shard 0 : Received HELLO +2021-08-06 16:32:29 | [INFO] | Shard 0 : Received READY +2021-08-06 16:36:21 | [INFO] | Discordia 2.9.1 +2021-08-06 16:36:21 | [INFO] | Connecting to Discord... +2021-08-06 16:36:22 | [INFO] | Authenticated as Thembot#2260 +2021-08-06 16:36:22 | [INFO] | Launching shard 0 (1 out of 1)... +2021-08-06 16:36:22 | [INFO] | Shard 0 : Connected to wss://gateway.discord.gg +2021-08-06 16:36:22 | [INFO] | Shard 0 : Received HELLO +2021-08-06 16:36:22 | [INFO] | Shard 0 : Received READY +2021-08-06 16:36:41 | [INFO] | Discordia 2.9.1 +2021-08-06 16:36:41 | [INFO] | Connecting to Discord... +2021-08-06 16:36:42 | [INFO] | Authenticated as Thembot#2260 +2021-08-06 16:36:42 | [INFO] | Launching shard 0 (1 out of 1)... +2021-08-06 16:36:42 | [INFO] | Shard 0 : Connected to wss://gateway.discord.gg +2021-08-06 16:36:42 | [INFO] | Shard 0 : Received HELLO +2021-08-06 16:36:42 | [INFO] | Shard 0 : Received READY +2021-08-06 16:37:00 | [INFO] | Discordia 2.9.1 +2021-08-06 16:37:00 | [INFO] | Connecting to Discord... +2021-08-06 16:37:00 | [INFO] | Authenticated as Thembot#2260 +2021-08-06 16:37:00 | [INFO] | Launching shard 0 (1 out of 1)... +2021-08-06 16:37:00 | [INFO] | Shard 0 : Connected to wss://gateway.discord.gg +2021-08-06 16:37:00 | [INFO] | Shard 0 : Received HELLO +2021-08-06 16:37:00 | [INFO] | Shard 0 : Received READY +2021-08-06 16:46:51 | [INFO] | Discordia 2.9.1 +2021-08-06 16:46:51 | [INFO] | Connecting to Discord... +2021-08-06 16:46:52 | [INFO] | Authenticated as Thembot#2260 +2021-08-06 16:46:52 | [INFO] | Launching shard 0 (1 out of 1)... +2021-08-06 16:46:52 | [INFO] | Shard 0 : Connected to wss://gateway.discord.gg +2021-08-06 16:46:52 | [INFO] | Shard 0 : Received HELLO +2021-08-06 16:46:52 | [INFO] | Shard 0 : Received READY +2021-08-06 16:48:00 | [INFO] | Discordia 2.9.1 +2021-08-06 16:48:00 | [INFO] | Connecting to Discord... +2021-08-06 16:48:00 | [INFO] | Authenticated as Thembot#2260 +2021-08-06 16:48:00 | [INFO] | Launching shard 0 (1 out of 1)... +2021-08-06 16:48:00 | [INFO] | Shard 0 : Connected to wss://gateway.discord.gg +2021-08-06 16:48:00 | [INFO] | Shard 0 : Received HELLO +2021-08-06 16:48:00 | [INFO] | Shard 0 : Received READY +2021-08-06 16:48:08 | [INFO] | Discordia 2.9.1 +2021-08-06 16:48:08 | [INFO] | Connecting to Discord... +2021-08-06 16:48:08 | [INFO] | Authenticated as Thembot#2260 +2021-08-06 16:48:08 | [INFO] | Launching shard 0 (1 out of 1)... +2021-08-06 16:48:09 | [INFO] | Shard 0 : Connected to wss://gateway.discord.gg +2021-08-06 16:48:09 | [INFO] | Shard 0 : Received HELLO +2021-08-06 16:48:09 | [INFO] | Shard 0 : Received READY +2021-08-06 16:49:51 | [INFO] | Discordia 2.9.1 +2021-08-06 16:49:51 | [INFO] | Connecting to Discord... +2021-08-06 16:49:51 | [INFO] | Authenticated as Thembot#2260 +2021-08-06 16:49:51 | [INFO] | Launching shard 0 (1 out of 1)... +2021-08-06 16:49:52 | [INFO] | Shard 0 : Connected to wss://gateway.discord.gg +2021-08-06 16:49:52 | [INFO] | Shard 0 : Received HELLO +2021-08-06 16:49:52 | [INFO] | Shard 0 : Received READY +2021-08-06 16:50:35 | [INFO] | Discordia 2.9.1 +2021-08-06 16:50:35 | [INFO] | Connecting to Discord... +2021-08-06 16:50:35 | [INFO] | Authenticated as Thembot#2260 +2021-08-06 16:50:35 | [INFO] | Launching shard 0 (1 out of 1)... +2021-08-06 16:50:35 | [INFO] | Shard 0 : Connected to wss://gateway.discord.gg +2021-08-06 16:50:35 | [INFO] | Shard 0 : Received HELLO +2021-08-06 16:50:35 | [INFO] | Shard 0 : Received READY +2021-08-06 16:50:58 | [INFO] | Discordia 2.9.1 +2021-08-06 16:50:58 | [INFO] | Connecting to Discord... +2021-08-06 16:50:58 | [INFO] | Authenticated as Thembot#2260 +2021-08-06 16:50:58 | [INFO] | Launching shard 0 (1 out of 1)... +2021-08-06 16:50:58 | [INFO] | Shard 0 : Connected to wss://gateway.discord.gg +2021-08-06 16:50:58 | [INFO] | Shard 0 : Received HELLO +2021-08-06 16:50:58 | [INFO] | Shard 0 : Received READY +2021-08-06 16:51:48 | [INFO] | Discordia 2.9.1 +2021-08-06 16:51:48 | [INFO] | Connecting to Discord... +2021-08-06 16:51:48 | [INFO] | Authenticated as Thembot#2260 +2021-08-06 16:51:48 | [INFO] | Launching shard 0 (1 out of 1)... +2021-08-06 16:51:48 | [INFO] | Shard 0 : Connected to wss://gateway.discord.gg +2021-08-06 16:51:48 | [INFO] | Shard 0 : Received HELLO +2021-08-06 16:51:49 | [INFO] | Shard 0 : Received READY +2021-08-06 16:53:15 | [INFO] | Discordia 2.9.1 +2021-08-06 16:53:15 | [INFO] | Connecting to Discord... +2021-08-06 16:53:15 | [INFO] | Authenticated as Thembot#2260 +2021-08-06 16:53:15 | [INFO] | Launching shard 0 (1 out of 1)... +2021-08-06 16:53:15 | [INFO] | Shard 0 : Connected to wss://gateway.discord.gg +2021-08-06 16:53:15 | [INFO] | Shard 0 : Received HELLO +2021-08-06 16:53:15 | [INFO] | Shard 0 : Received READY +2021-08-06 16:53:28 | [INFO] | Discordia 2.9.1 +2021-08-06 16:53:28 | [INFO] | Connecting to Discord... +2021-08-06 16:53:28 | [INFO] | Authenticated as Thembot#2260 +2021-08-06 16:53:28 | [INFO] | Launching shard 0 (1 out of 1)... +2021-08-06 16:53:28 | [INFO] | Shard 0 : Connected to wss://gateway.discord.gg +2021-08-06 16:53:28 | [INFO] | Shard 0 : Received HELLO +2021-08-06 16:53:28 | [INFO] | Shard 0 : Received READY +2021-08-06 16:54:25 | [INFO] | Discordia 2.9.1 +2021-08-06 16:54:25 | [INFO] | Connecting to Discord... +2021-08-06 16:54:26 | [INFO] | Authenticated as Thembot#2260 +2021-08-06 16:54:26 | [INFO] | Launching shard 0 (1 out of 1)... +2021-08-06 16:54:26 | [INFO] | Shard 0 : Connected to wss://gateway.discord.gg +2021-08-06 16:54:26 | [INFO] | Shard 0 : Received HELLO +2021-08-06 16:54:26 | [INFO] | Shard 0 : Received READY +2021-08-06 16:55:11 | [INFO] | Discordia 2.9.1 +2021-08-06 16:55:11 | [INFO] | Connecting to Discord... +2021-08-06 16:55:11 | [INFO] | Authenticated as Thembot#2260 +2021-08-06 16:55:11 | [INFO] | Launching shard 0 (1 out of 1)... +2021-08-06 16:55:11 | [INFO] | Shard 0 : Connected to wss://gateway.discord.gg +2021-08-06 16:55:11 | [INFO] | Shard 0 : Received HELLO +2021-08-06 16:55:11 | [INFO] | Shard 0 : Received READY +2021-08-06 16:55:49 | [INFO] | Discordia 2.9.1 +2021-08-06 16:55:49 | [INFO] | Connecting to Discord... +2021-08-06 16:55:50 | [INFO] | Authenticated as Thembot#2260 +2021-08-06 16:55:50 | [INFO] | Launching shard 0 (1 out of 1)... +2021-08-06 16:55:50 | [INFO] | Shard 0 : Connected to wss://gateway.discord.gg +2021-08-06 16:55:50 | [INFO] | Shard 0 : Received HELLO +2021-08-06 16:55:50 | [INFO] | Shard 0 : Received READY