mirror of
https://github.com/BluemediaGER/muse.git
synced 2024-11-14 13:45:28 +01:00
25 lines
481 B
TypeScript
25 lines
481 B
TypeScript
|
import {CommandHandler} from '../interfaces';
|
||
|
|
||
|
const config: CommandHandler = {
|
||
|
name: 'config',
|
||
|
description: 'Change various bot settings.',
|
||
|
execute: (msg, args) => {
|
||
|
const setting = args[0];
|
||
|
|
||
|
switch (setting) {
|
||
|
case 'prefix':
|
||
|
msg.channel.send('Prefix set');
|
||
|
break;
|
||
|
|
||
|
case 'channel':
|
||
|
msg.channel.send('Channel bound');
|
||
|
break;
|
||
|
|
||
|
default:
|
||
|
msg.channel.send('Unknown setting');
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
|
||
|
export default config;
|