-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.js
33 lines (31 loc) · 837 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
24
25
26
27
28
29
30
31
32
33
const aoi = require("aoi.js")
const bot = new aoi.Bot({
token: config.Token,
prefix: [config.Prefix_1,config.Prefix_2,config.Prefix_3]
});
bot.onMessage({
guildOnly: false //make commands work in dms
});
bot.onMusicStart()
bot.musicStartCommand({
channel: "$channelID",
code: `
$color[RANDOM]
$author[Now Playing]
$description[Playing $songInfo[title]]`
});
bot.musicEndCommand({
channel: "$channelID",
code: `$sendMessage[{description: I'm leaving the Voice Channel since no one is playing music anymore}{delete:5s};no]`
});
bot.loadCommands('./Commmands/'); //command handler
bot.status ({
text: "${config.Prefix_3} help",
type: "LISTENING",
time: 10
});
bot.variables ({
wallet: "0", //wallet money
bank: "0", //bank money
bio: "I am Just a Plain Human" //user bio for profile
});