mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -04:00
[cmd](google) error when there are no results
This commit is contained in:
parent
489a12976d
commit
91bd5f960c
1 changed files with 2 additions and 0 deletions
|
@ -39,6 +39,8 @@ module.exports = {
|
|||
let search = await google(context, args.query)
|
||||
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){
|
||||
pages.push(createSearchResultPage(context, res))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue