mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 18:05:01 +02:00
Change arg assignment
This commit is contained in:
@@ -24,8 +24,7 @@ module.exports = class MockingCommand extends Command {
|
||||
});
|
||||
}
|
||||
|
||||
run(msg, args) {
|
||||
const { text } = args;
|
||||
run(msg, { text }) {
|
||||
for (let i = 0; i < text.length; i += Math.floor(Math.random() * 4)) text[i] = text[i].toUpperCase();
|
||||
return msg.say(`${text.join('')} <:sponge:318612443398144000>`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user