mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 06:33:18 +00:00
Simplicy Commands
This commit is contained in:
parent
87cf4b62c8
commit
3cec154343
@ -21,8 +21,7 @@ export interface command {
|
|||||||
execute: any
|
execute: any
|
||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default async function commands(client: RadioClient) {
|
||||||
async execute(client: RadioClient) {
|
|
||||||
const commands : command[] = [ bug, help, invite, list, maintenance, next, nowplaying, play, prev, statistics, status, stop ];
|
const commands : command[] = [ bug, help, invite, list, maintenance, next, nowplaying, play, prev, statistics, status, stop ];
|
||||||
|
|
||||||
for(const command of commands){
|
for(const command of commands){
|
||||||
|
@ -62,7 +62,7 @@ export default async function ready(client: RadioClient) {
|
|||||||
client.statistics.calculateGlobal(client);
|
client.statistics.calculateGlobal(client);
|
||||||
|
|
||||||
/*COMMANDS*/
|
/*COMMANDS*/
|
||||||
commands.execute(client);
|
commands(client);
|
||||||
|
|
||||||
/*RADIO*/
|
/*RADIO*/
|
||||||
client.radio = new Radio();
|
client.radio = new Radio();
|
||||||
|
Loading…
Reference in New Issue
Block a user