浏览代码

removed .title() that was causing some issues in the xkcd command.

tags/v1.8.0
Roxie Gibson 6 年前
父节点
当前提交
2a36324b75
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. +2
    -4
      roxbot/cogs/fun.py

+ 2
- 4
roxbot/cogs/fun.py 查看文件

@@ -408,10 +408,8 @@ class Fun:
# Get the latest comic
comic = await xkcd_lookup_latest()
else:
# Otherwise, assume it's meant to be a name & look up from that.
# Case insensitive, or at least as close as we can get it.
# Titles tend to be in title case so this shouldn't be a problem
query = query.title()
# Removed case-insensitivity here
# because it actually made some titles not show up due to multiple capital letters next to each other.
comic = await xkcd_lookup_title(query)


正在加载...
取消
保存