mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
Add an e to fix a typo in math lol
This commit is contained in:
@@ -21,7 +21,7 @@ class MathCommand extends commando.Command {
|
|||||||
let messagecontent = message.content.split(" ").slice(1).join(" ");
|
let messagecontent = message.content.split(" ").slice(1).join(" ");
|
||||||
try {
|
try {
|
||||||
let solved = math.eval(messagecontent);
|
let solved = math.eval(messagecontent);
|
||||||
message.channel.sendMessage(solved).catch(error => message.channel.sendMessage(":x: Error! Invalid statment!"));
|
message.channel.sendMessage(solved).catch(error => message.channel.sendMessage(":x: Error! Invalid statement!"));
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
message.channel.sendMessage(":x: Error! Invalid statement!");
|
message.channel.sendMessage(":x: Error! Invalid statement!");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user