spark-c / SparksieBOT

A Discord bot that provides upkeep, utility, and some fun commands for my personal discord server.
1 stars 0 forks source link

**URGENT** Listkeeper: selected_list is not separated by guild! #8

Closed spark-c closed 3 years ago

spark-c commented 3 years ago

I have not attempted to dutifully reproduce this bug, however I'm pretty sure this is the case:

Listkeeper.selected_list is not separated by guild! The bot only knows which is the most recent list it has dealt with.

Fixing this should be relatively straightforward. In cogs/Listkeeper.py:

  1. Listkeeper.selected_list should be implemented as a dict with keys {guild_id : Collection} (Union[Dict[str, Collection], None])
  2. References to Listkeeper.selected_list should be updated to reference Listkeeper.selected_list[str(ctx.guild.id)]
spark-c commented 3 years ago

May have been fixed. Testing required.

spark-c commented 3 years ago

Resolved