mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -19,7 +19,7 @@ module.exports = class AgeCommand extends Command {
|
||||
}
|
||||
|
||||
run(msg, { year }) {
|
||||
const currentYear = new Date().getYear();
|
||||
const currentYear = new Date().getFullYear();
|
||||
return msg.say(`Someone born in ${year} would be ${currentYear - year} years old.`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user