mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 10:25:11 +02:00
Change arg assignment
This commit is contained in:
@@ -22,8 +22,7 @@ module.exports = class BCommand extends Command {
|
||||
});
|
||||
}
|
||||
|
||||
run(msg, args) {
|
||||
const { text } = args;
|
||||
run(msg, { text }) {
|
||||
return msg.say(text.replace(/(b|d|g|p|q)/gi, '🅱'));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user