diff options
author | 2020-09-09 20:01:08 -0700 | |
---|---|---|
committer | 2020-09-09 20:01:08 -0700 | |
commit | 2844b11032e0a330bfeaf43f08c607c2f26ffc58 (patch) | |
tree | 601a0b605d3cb392743603d45f99934d038997ec | |
parent | Added RandomCycle utility to jump between set indexes repeatedly. (diff) |
Update bot/exts/evergreen/conversationstarters.py
Co-authored-by: Shirayuki Nekomata <[email protected]>
-rw-r--r-- | bot/exts/evergreen/conversationstarters.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/evergreen/conversationstarters.py b/bot/exts/evergreen/conversationstarters.py index ebefc53e..16a7dcfc 100644 --- a/bot/exts/evergreen/conversationstarters.py +++ b/bot/exts/evergreen/conversationstarters.py @@ -24,7 +24,7 @@ with Path("bot/resources/evergreen/py_topics.yaml").open("r", encoding="utf8") a ALL_ALLOWED_CHANNELS = [channel_id for channel_id in PY_TOPICS.keys()] + list(WHITELISTED_CHANNELS) # Putting all topics into one dictionary and shuffling lists to reduce same-topic repetitions. -all_topics = {'default': STARTERS, **PY_TOPICS} +ALL_TOPICS = {'default': STARTERS, **PY_TOPICS} TOPICS = {channel: RandomCycle(topics) if len(topics) else False for channel, topics in all_topics.items()} |