From d437efecb53dbb8b98a2e1e290681c2f8e2c5091 Mon Sep 17 00:00:00 2001 From: derpystuff <3515180-derpystuff@users.noreply.gitlab.com> Date: Thu, 16 Jun 2022 23:23:49 +0200 Subject: [PATCH] return no results on wolfram --- commands/message/search/wolfram-alpha.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commands/message/search/wolfram-alpha.js b/commands/message/search/wolfram-alpha.js index ee99468..5394f08 100644 --- a/commands/message/search/wolfram-alpha.js +++ b/commands/message/search/wolfram-alpha.js @@ -40,6 +40,8 @@ module.exports = { let search = await wolframAlpha(context, args.query) search = search.response + if(search.body.status == 1) return editOrReply(context, {embeds:[createEmbed("warning", context, search.body.message)]}) + let pages = [] for(const res of search.body.data){ pages.push(createWolframPage(context, res))