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