-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.js
23 lines (21 loc) · 615 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require('http').createServer((req, res) => res.end(config.webmessage)).listen(5000);
const Aoijs = require("aoi.js")
const config = require('./config.json')
const chat = new Aoijs.Bot({
mobile: config.mobilepresence,
token: process.env.token, // Also process.env.token
prefix: config.prefix,
autoUpdate: config.autoupdate
})
chat.loadCommands("./Commands")
chat.loadCommands("./Others")
// Variables, DO NOT CHANGE!
chat.variables({
chatchannel: "Not set",
chatinvite: "Not set",
embedcolor: "#74b559",
userrole: ":busts_in_silhouette: USERNAME",
userban: "No banned"
})
// Callbacks
chat.onMessage()