mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 10:25:11 +02:00
Add success emoji at end
This commit is contained in:
@@ -3,6 +3,7 @@ const path = require('path');
|
|||||||
const { letterTrans } = require('custom-translate');
|
const { letterTrans } = require('custom-translate');
|
||||||
const { reactIfAble, delay } = require('../../util/Util');
|
const { reactIfAble, delay } = require('../../util/Util');
|
||||||
const dictionary = require('../../assets/json/morse');
|
const dictionary = require('../../assets/json/morse');
|
||||||
|
const { SUCCESS_EMOJI_ID } = process.env;
|
||||||
|
|
||||||
module.exports = class MorseCommand extends Command {
|
module.exports = class MorseCommand extends Command {
|
||||||
constructor(client) {
|
constructor(client) {
|
||||||
@@ -60,6 +61,7 @@ module.exports = class MorseCommand extends Command {
|
|||||||
}
|
}
|
||||||
await delay(3000);
|
await delay(3000);
|
||||||
}
|
}
|
||||||
|
await reactIfAble(msg, msg.author, SUCCESS_EMOJI_ID, '✅');
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user