Added folders.

pull/1/head
Astoria Floyd 3 years ago
parent fff859f750
commit 7327f94fd9

@ -1,5 +1,5 @@
local rng = {}
local tools = dofile("./tools.lua")
local tools = dofile("./API/tools.lua")
--Rolls a d20, if output is 1, Critical miss(or Shit), if output is 20, critical hit.
function rng.d20()

@ -9,8 +9,8 @@ end
--Initializes commands.
function tools.initialize()
local simpleCommands = dofile("./simpleCommands.lua")
local complexCommands = dofile("./complexCommands.lua")
local simpleCommands = dofile("./commands/simpleCommands.lua")
local complexCommands = dofile("./commands/complexCommands.lua")
local complexCommands = complexCommands.initialize()
local simpleCommands = simpleCommands.initialize()
local commands = tools.tableMerge(simpleCommands, complexCommands)

@ -1,6 +1,6 @@
local discordia = require('discordia')
local client = discordia.Client()
Tools = dofile("./tools.lua")
Tools = dofile("./API/tools.lua")
discordia.extensions()
--Setup bot here, initializes bot
@ -29,7 +29,7 @@ client:on('messageCreate', function(message)
message:reply("You cannot re-initialize this bot!")
else
Commands = Tools.initialize()
Tools = dofile("./tools.lua")
Tools = dofile("./API/tools.lua")
message:reply("Re-Initialized!")
end
end
@ -46,7 +46,7 @@ client:on('userBan', function()
end)
--Insert Token in a .lua file with simply returns it as a string.
local token = require("./token.lua")
local token = require("./docs/token.lua")
client:run('Bot '..token)
-- This project is libre, and licenced under the terms of the
-- DO WHAT THE FUCK YOU WANT TO PUBLIC LICENCE, version 3.1,

@ -1,8 +1,8 @@
local tools = dofile("./tools.lua")
local rng = dofile("./rng.lua")
local tools = dofile("./API/tools.lua")
local rng = dofile("./API/rng.lua")
local complexCommands = {}
local prefix = dofile("./settings.lua")
local prefix = dofile("./docs/settings.lua")
local commands = { -- Define commands its a table that will contain our commands
[prefix..'helpme'] = { -- Dumps docs/help to chat, took me forever to figure out.

@ -1,5 +1,5 @@
local basicCommands = {}
local prefix = dofile("./settings.lua")
local prefix = dofile("./docs/settings.lua")
local commands = { -- Define commands its a table that will contain our commands
[prefix..'lenny'] = { -- Creates a lenny face

@ -1 +1 @@
luvit bot.lua
luvit bot.lua
Loading…
Cancel
Save