-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexpbot.lua
More file actions
32 lines (23 loc) · 790 Bytes
/
Copy pathexpbot.lua
File metadata and controls
32 lines (23 loc) · 790 Bytes
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
local discordia = require('discordia')
local client = discordia.Client()
token = require "expotoken"
mods = require "expb/modules"
client:on("ready",function()
client:setGame("NSFW 👀")
for i, k in pairs(mods) do
if k.init then k.init(mods) end
end
end)
client:on("guildCreate", function(guild)
if guild.systemChannel then
guild.systemChannel:send("```css\nExponentia Has Joined!```")
end
end)
client:on("messageCreate", function(message)
if message.guild then if message.channel.nsfw then
for i, k in pairs(mods) do
if k.chat then k.chat(message) end
end
end end
end)
client:run(token)