TheDarkLordSano / HFYBeetusBot

Full Control Mwuahahhaha
GNU General Public License v2.0
5 stars 1 forks source link

Bot currently allows user to subscribe to the same writer multiple times. #24

Open wrightcameron opened 7 years ago

wrightcameron commented 7 years ago

Currently if I subscribe to a writer the bot does not check if I have subscribed to them before. This causes a subscription list that contains duplicates, and when a new story, post, chapter gets released I get messaged x amount of times. Also now that I subscribed to one user 4 times I know get 3 messages telling me that I just subscribed to them.

image

Steps to Reproduce:

  1. Find a user who writes multiple stories.
  2. Subscribe multiple times.

I would assume that the fix to this bug would be to create a conditional statement that goes through the data structure storing subscriptions and flags if someone has already been subscribed too. I never tried removing a subscription so I don't know if it would remove one instance or would remove all.

TheDarkLordSano commented 7 years ago

Should be taken care of on the database structure. but for some reason is being ignored. I've been at this roughly 12 of the 16 hours I've been awake.

https://www.reddit.com/r/HFY/comments/728bqw/meta_subscription_bot_things/