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