mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-07 21:53:07 -04:00
fix ocrtr error, handle dictionary error
This commit is contained in:
parent
72d3894d6f
commit
ab2ddea506
2 changed files with 5 additions and 3 deletions
|
@ -88,6 +88,8 @@ module.exports = {
|
|||
run: async (context, args) => {
|
||||
await acknowledge(context);
|
||||
|
||||
if(!args.query || args.query.length === 0) return editOrReply(context, createEmbed("warning", context, "Missing query argument."))
|
||||
|
||||
let language = dictionaryGetCodeFromAny(args.lang);
|
||||
|
||||
if (!language) return editOrReply(context, createEmbed("warning", context, "Invalid Language"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue