mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 06:10:49 +02:00
Fix Roman
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
const { Command } = require('discord.js-commando');
|
||||
const { getRomanFromInteger } = require('roman-numeral-converter-mmxvi');
|
||||
const romanNumeralConverter = require('roman-numeral-converter-mmxvi');
|
||||
|
||||
module.exports = class RomanCommand extends Command {
|
||||
constructor(client) {
|
||||
@@ -28,7 +28,7 @@ module.exports = class RomanCommand extends Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
}
|
||||
const number = args.number;
|
||||
const roman = getRomanFromInteger(number);
|
||||
const roman = romanNumeralConverter.getRomanFromInteger(number);
|
||||
return message.say(roman);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user