mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-27 14:18:36 +02:00
Change arg assignment
This commit is contained in:
@@ -24,8 +24,7 @@ module.exports = class MorseCommand extends Command {
|
||||
});
|
||||
}
|
||||
|
||||
run(msg, args) {
|
||||
const { text } = args;
|
||||
run(msg, { text }) {
|
||||
return msg.say(letterTrans(text, dictionary, ' '));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user