Browse Source

removed print function in nsfw that was for debug.

tags/v1.6.0
Roxie Gibson 6 years ago
parent
commit
efb91b3892
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      Roxbot/cogs/nsfw.py

+ 0
- 1
Roxbot/cogs/nsfw.py View File

@@ -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.

Loading…
Cancel
Save