mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -04:00
removes "-to" incase user expects it
This commit is contained in:
parent
175b104c97
commit
3d6233a0a7
1 changed files with 1 additions and 0 deletions
|
@ -24,6 +24,7 @@ module.exports = {
|
|||
context.triggerTyping();
|
||||
|
||||
if(!args.to) args.to = "en"
|
||||
if(args.to.startsWith("-to")) args.to = args.to.replace("-to ", "")
|
||||
|
||||
if(!isSupported(args.to)) return editOrReply(context, createEmbed("warning", context, "Invalid language (to)."))
|
||||
if(!isSupported(args.from)) return editOrReply(context, createEmbed("warning", context, "Invalid language (from)."))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue