mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 16:19:12 +02:00
Bug Fixes
This commit is contained in:
@@ -22,6 +22,6 @@ module.exports = class ComplimentCommand extends Command {
|
||||
run(msg, args) {
|
||||
const user = args.user || msg.author;
|
||||
const compliment = compliments[Math.floor(Math.random() * compliments.length)];
|
||||
return msg.say(`${user}, ${compliment}`);
|
||||
return msg.say(`${user.username}, ${compliment}`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -12,7 +12,7 @@ module.exports = class RoastCommand extends Command {
|
||||
{
|
||||
key: 'user',
|
||||
prompt: 'What user do you want to roast?',
|
||||
type: 'string',
|
||||
type: 'user',
|
||||
default: ''
|
||||
}
|
||||
]
|
||||
@@ -22,6 +22,6 @@ module.exports = class RoastCommand extends Command {
|
||||
run(msg, args) {
|
||||
const user = args.user || msg.author;
|
||||
const roast = roasts[Math.floor(Math.random() * roasts.length)];
|
||||
return msg.say(`${user}, ${roast}`);
|
||||
return msg.say(`${user.username}, ${roast}`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user