diff options
author | 2020-09-10 08:46:50 -0700 | |
---|---|---|
committer | 2020-09-10 08:46:50 -0700 | |
commit | ee693c284103ca1e730f71a845b359a400bd7ed2 (patch) | |
tree | 75abfd7843cf9fdd9830e5152d66b7b141210d2c /bot | |
parent | Update bot/utils/randomization.py (diff) |
Update bot/exts/evergreen/conversationstarters.py
Co-authored-by: Shirayuki Nekomata <[email protected]>
Diffstat (limited to 'bot')
-rw-r--r-- | bot/exts/evergreen/conversationstarters.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bot/exts/evergreen/conversationstarters.py b/bot/exts/evergreen/conversationstarters.py index 16a7dcfc..beda8479 100644 --- a/bot/exts/evergreen/conversationstarters.py +++ b/bot/exts/evergreen/conversationstarters.py @@ -25,7 +25,10 @@ with Path("bot/resources/evergreen/py_topics.yaml").open("r", encoding="utf8") a # Putting all topics into one dictionary and shuffling lists to reduce same-topic repetitions. ALL_TOPICS = {'default': STARTERS, **PY_TOPICS} -TOPICS = {channel: RandomCycle(topics) if len(topics) else False for channel, topics in all_topics.items()} +TOPICS = { + channel: RandomCycle(topics or ['No topics found for this channel.']) + for channel, topics in all_topics.items() +} class ConvoStarters(commands.Cog): |