mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-10 07:03:08 -04:00
adds no search result errors
This commit is contained in:
parent
c09a24ce9d
commit
52d2bbbc2d
6 changed files with 10 additions and 4 deletions
|
@ -41,6 +41,8 @@ module.exports = {
|
|||
try{
|
||||
let search = await bingImages(context, args.query, context.channel.nsfw)
|
||||
search = search.response
|
||||
|
||||
if(search.body.status == 2) return editOrReply(context, {embeds:[createEmbed("error", context, search.body.message)]})
|
||||
|
||||
let pages = []
|
||||
for(const res of search.body.results){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue