rename to translate

This commit is contained in:
loicbersier 2020-03-19 16:32:09 +01:00
parent 3ddd8b8d25
commit a99ad3b83d

View file

@ -2,10 +2,10 @@ const { Command } = require('discord-akairo');
const fetch = require('node-fetch'); const fetch = require('node-fetch');
const { yandexTRN, yandexDICT } = require('../../config.json'); const { yandexTRN, yandexDICT } = require('../../config.json');
class TranslationCommand extends Command { class translateCommand extends Command {
constructor() { constructor() {
super('translation', { super('translate', {
aliases: ['translation', 'trn'], aliases: ['translate', 'trn'],
category: 'utility', category: 'utility',
clientPermissions: ['SEND_MESSAGES', 'EMBED_LINKS'], clientPermissions: ['SEND_MESSAGES', 'EMBED_LINKS'],
args: [ args: [
@ -102,4 +102,4 @@ class TranslationCommand extends Command {
} }
} }
module.exports = TranslationCommand; module.exports = translateCommand;