Переглянути джерело

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)


Завантаження…
Відмінити
Зберегти