-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.js
131 lines (109 loc) · 3.81 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
/*
Made By Wild Life Studio | ! ᜴💍|𝓹𝓸𝓸𝓻𝓲𝔂𝓪.𝔂𝓽𖧞༆❦#3333
discord.gg/8R8EUhBbyt
__ ___ _ _ _ _ __ _____ _ _ _
\ \ / (_) | | | | | (_)/ _| / ____| | | (_)
\ \ /\ / / _| | __| | | | _| |_ ___ | (___ | |_ _ _ __| |_ ___
\ \/ \/ / | | |/ _` | | | | | _/ _ \ \___ \| __| | | |/ _` | |/ _ \
\ /\ / | | | (_| | | |____| | || __/ ____) | |_| |_| | (_| | | (_) |
\/ \/ |_|_|\__,_| |______|_|_| \___| |_____/ \__|\__,_|\__,_|_|\___/
+-+-+-+-+ +-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|M|a|d|e| |B|y| |W|i|l|d|_|L|i|f|e|_|S|t|u|d|i|O|
+-+-+-+-+ +-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
version 7.0.5
*/
const { LoadCommands, AoiClient } = require("aoi.js");
const { Manager } = require("@akarui/aoi.music");
const keepAlive = require(`./server`);
const { Util } = require('aoi.js');
const {
AoiVoice,
PlayerEvents,
PluginName,
Cacher,
Filter,
} = require(`@akarui/aoi.music`);
const bot = new AoiClient({
token: "Your Bot Token Here",
prefix: "#",
intents: ["MessageContent", "Guilds", "GuildMessages", "GuildVoiceStates"],
events: ["onMessage", "onInteractionCreate"],
database: {
type: "aoi.db",
db: require("aoi.db"),
tables: ["main"],
path: "./database/",
extraOptions: {
dbType: "KeyValue"
}
},
suppressAllErrors: true
})
const loader = new LoadCommands(bot);
loader.load(bot.cmd, "./commands/")
require('./variables/variables')(bot);
const voice = new AoiVoice(bot, {
requestOptions: {
offsetTimeout: 0,
soundcloudLikeTrackLimit: 200,
},
searchOptions: {
soundcloudClientId: "Your SoundCloud Id Here",
},
});
loader.load(voice.cmds, "./voice/")
voice.bindExecutor(bot.functionManager.interpreter);
voice.addEvent(PlayerEvents.TRACK_START);
voice.addEvent(PlayerEvents.TRACK_END);
voice.addEvent(PlayerEvents.QUEUE_END);
voice.addEvent(PlayerEvents.QUEUE_START);
voice.addEvent(PlayerEvents.AUDIO_ERROR);
voice.addEvent(PlayerEvents.TRACK_PAUSE);
voice.addEvent(PlayerEvents.TRACK_RESUME);
voice.addPlugin(PluginName.Cacher, new Cacher("disk" /* or "memory" */));
voice.addPlugin(PluginName.Filter, new Filter({
filterFromStart: false,
}));
bot.status({
status: "idle",
text: "Made By Wild Life Studio With 💖&☕",
type: "WATCHING",
time: 12
})
/*
bot.status({
status: "idle",
text: "$membersCount[Your Server Id Here] Members🍂",
type: "WATCHING",
time: 12
})
*/
bot.readyCommand({
code: `
$log[
I'm Ready On $userTag[$clientID]
+-+-+-+-+ +-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|M|a|d|e| |B|y| |W|i|l|d|_|L|i|f|e|_|S|t|u|d|i|O|
+-+-+-+-+ +-+-+-+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
version 7.0.3
discord.gg/8R8EUhBbyt
]
`
})
const { Panel } = require("@akarui/aoi.panel")
const panel = new Panel({
username: "User Name Here",//username for logging in
password: "Password Here",//password for logging in
secret: "$randomString[20]",//session secret
port: 3000,//port on which website is hosted, Not required! Default 3000
bot: bot,//your aoi.js client
mainFile: "index.js",//Main file where code is running.Not required, default taken from package.json
version: "v6",
type: "aoi",
theme: "blue-grey",//panel & dashboard theme
codetheme: "erlang-dark",//code editor theme
/* FOR MORE THEMES AND CODE EDITOR THEMES, READ ABOUTH THE PANEL CLASS, IN THE DOCS */
commands: "commands"// folder name in which all the edit needing files are there
})
panel.loadPanel()//Load The Panel
panel.onError()//Will detect errors, and send it to aoi.panel's error page