mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 18:05:01 +02:00
The Ultimate Formatting is Done
This commit is contained in:
@@ -22,7 +22,7 @@ module.exports = class MathCommand extends commando.Command {
|
||||
if (message.channel.type !== 'dm') {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
}
|
||||
console.log("[Command] " + message.content);
|
||||
console.log(`[Command] ${message.content}`);
|
||||
let expression = message.content.split(" ").slice(1).join(" ");
|
||||
try {
|
||||
let solved = math.eval(expression);
|
||||
|
||||
Reference in New Issue
Block a user