瀏覽代碼

removed print function in nsfw that was for debug.

tags/v1.6.0
Roxie Gibson 6 年之前
父節點
當前提交
efb91b3892
共有 1 個檔案被更改,包括 0 行新增1 行删除
  1. +0
    -1
      Roxbot/cogs/nsfw.py

+ 0
- 1
Roxbot/cogs/nsfw.py 查看文件

@@ -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…
取消
儲存