-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.lua
49 lines (42 loc) · 1.2 KB
/
init.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
--[[----------------------------------------------
Discord bot developed by SaturdaysHeroes.xyz
--]]----------------------------------------------
local discordia = require("discordia")
local client = discordia.Client()
_G.mbot = {}
_G.config = {}
_G.languages = {}
-- Additional extensions.
local json = require("json")
local http = require("coro-http")
discordia.extensions()
-- Config variables/tables.
config.prefix = ">"
config.token = ""
config.activity = "memes 👌 | "..config.prefix.."help"
config.language = "en"
config.seperator = "-"
config.login = {
username = "Imgflip.com_USERNAME",
password = "Imgflip.com_PASSWORD"
}
config.commands = {
["en"] = {
["commandFormats"] = "formats",
["commandGenerate"] = "generate",
},
["pl"] = {
["commandFormats"] = "szablony",
["commandGenerate"] = "generuj",
},
}
-- Lua modules.
require("./modules/language")(client)
require("./modules/commands")(client)
require("./modules/memegen")(client)
-- Bot events.
client:on("ready", function()
client:setGame(config.activity)
print("--------------------------------------")
end)
client:run("Bot "..config.token)