-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbot.js
37 lines (31 loc) · 952 Bytes
/
bot.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
34
35
36
37
const { AoiClient } = require("aoi.js");
const {
AoiVoice,
} = require("@akarui/aoi.music");
const client = new AoiClient({
token: "TOKEN", // Your bot token
prefix: "l:", // You can change this however you'd like
intents: ["MessageContent", "Guilds", "GuildMessages", "GuildVoiceStates"],
events: ["onMessage", "onInteractionCreate"],
});
client.status({
name: "Latte Bot ┃ Prefix - [ l: ]",
type: "CUSTOM",
status: "online",
time: 60,
});
client.readyCommand({
code: `$log[Client logged in as: $userTag[$clientID] - ID: $clientID]`
});
client.loadCommands("./commands/", true);
const voice = new AoiVoice(client, {
searchOptions: {
soundcloudClientId: "ID", // Setting the ID is sometimes required or the bot may crash trying to fetch the song
youtubegl: "US",
},
requestOptions: {
offsetTimeout: 0,
soundcloudLikeTrackLimit: 10000000,
},
});
voice.bindExecutor(client.functionManager.interpreter);