Procházet zdrojové kódy

removed print function in nsfw that was for debug.

tags/v1.6.0
Roxie Gibson před 6 roky
rodič
revize
efb91b3892
1 změnil soubory, kde provedl 0 přidání a 1 odebrání
  1. +0
    -1
      Roxbot/cogs/nsfw.py

+ 0
- 1
Roxbot/cogs/nsfw.py Zobrazit soubor

@@ -18,7 +18,6 @@ class NFSW():
# Maybe a page randomiser
limit = 200
tags = tags + self.tag_blacklist(ctx)
print(tags)
url = base_url + '/index.php?page=dapi&s=post&q=index&json=1&tags=' + tags + '&limit=' + str(limit)
req = requests.get(url, headers={'User-agent': 'RoxBot Discord Bot'})
if str(req.content) == "b''": # This is to catch any errors if the tags don't return anything because I can't do my own error handling in commands.

Načítá se…
Zrušit
Uložit