33 lines
889 B
JavaScript
33 lines
889 B
JavaScript
const Revolt = require('revolt.js');
|
|
const { client, logger, config } = require('..');
|
|
const { levels, levelups } = require('../util/levels');
|
|
|
|
module.exports.meta = {
|
|
name: 'levels',
|
|
aliases: [],
|
|
description: 'Enable or disable XP.'
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @param { Revolt.Message } message
|
|
* @param { string[] } args
|
|
*/
|
|
module.exports.run = async (message, args) => new Promise(async (resolve, reject) => {
|
|
return client.channels.sendMessage(message.channel, 'It is currently not possible to disable leveling.'); // to-do: make it possible
|
|
switch(args[0]?.toLowerCase()) {
|
|
case 'on':
|
|
case 'enable':
|
|
case 'undie':
|
|
|
|
break;
|
|
case 'off':
|
|
case 'disable':
|
|
case 'die':
|
|
case 'stfu':
|
|
|
|
break;
|
|
default:
|
|
client.channels.sendMessage(message.channel, 'Valid options: `enable`, `disable`');
|
|
}
|
|
}); |