-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.lua
40 lines (25 loc) · 826 Bytes
/
main.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
local discord = require("discordia")
require("discordia-components")
require("discordia-interactions")
require("dis_slash")
_G.client = discord.Client{
logFile = 'bot.log',
cacheAllMembers = true,
syncGuilds = true
}
client:enableAllIntents()
_G.dEnum = discord.enums --Loads all type informations here.
discord.extensions() -- load all helpful extensions
require("./extensions")()
_G.LoadslashCMD = nil
client:once("ready", function() -- bot is ready
client:setActivity("https://alokborsho.win")
print("Logged in as " .. client.user.username)
if not LoadslashCMD == nil and type(LoadslashCMD) == "function" then
LoadslashCMD(client)
end
end)
--local spamControl = require("./_Commands/spam")
require("./_Events")
local dToken = require("./token")
client:run("Bot "..dToken)