mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -38,7 +38,7 @@ module.exports = class MorseCommand extends Command {
|
||||
async run(msg, { text }) {
|
||||
const translated = letterTrans(text.toLowerCase(), dictionary, ' ');
|
||||
const parsed = escapeMarkdown(translated.replace(/ {2}/g, ' / '));
|
||||
const connection = this.client.dispatchers.get(msg.guild.id);
|
||||
const connection = msg.guild && this.client.dispatchers.get(msg.guild.id);
|
||||
if (!connection) {
|
||||
const usage = this.client.registry.commands.get('join').usage();
|
||||
return msg.reply(stripIndents`
|
||||
|
||||
Reference in New Issue
Block a user