Quellcode durchsuchen

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

tags/v1.8.0
Roxie Gibson vor 6 Jahren
Ursprung
Commit
2a36324b75
1 geänderte Dateien mit 2 neuen und 4 gelöschten Zeilen
  1. +2
    -4
      roxbot/cogs/fun.py

+ 2
- 4
roxbot/cogs/fun.py Datei anzeigen

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


Laden…
Abbrechen
Speichern