mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 15:57:54 +02:00
Fix
This commit is contained in:
@@ -19,7 +19,7 @@ module.exports = class AgeCommand extends Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
run(msg, { year }) {
|
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.`);
|
return msg.say(`Someone born in ${year} would be ${currentYear - year} years old.`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user