not broken, good enough. Modules not working.

pull/1/head
Astoria Floyd 3 years ago
parent f03a76897a
commit 256ee5125d

@ -0,0 +1,7 @@
local basicCommands = {}
function helloWorld()
return("Hello world!")
end
return basicCommands

@ -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')

@ -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
Loading…
Cancel
Save