mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 15:57:54 +02:00
More Formatting Woot
This commit is contained in:
@@ -18,6 +18,7 @@ const dictionary = {
|
||||
"meal": "tem flakes",
|
||||
"meals": "tem flakes",
|
||||
"human": "hooman",
|
||||
"humans": "hoomans",
|
||||
"chocolate": "choco",
|
||||
"cute": "coot",
|
||||
"allergic": "allergics",
|
||||
@@ -191,7 +192,12 @@ module.exports = class TemmieCommand extends commando.Command {
|
||||
}
|
||||
console.log("[Command] " + message.content);
|
||||
let thingToTranslate = message.content.split(" ").slice(1).join(" ");
|
||||
let temmized = temmize(thingToTranslate);
|
||||
message.channel.send(temmized);
|
||||
if (!thingToTranslate) {
|
||||
message.channel.send(':x: Error! Nothing to translate!');
|
||||
}
|
||||
else {
|
||||
let temmized = temmize(thingToTranslate);
|
||||
message.channel.send(temmized);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user