You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the bot grabs the most recent activity from the club. It then creates a hash from a string of the activity name, athlete, and activity duration. This hash is used to to prevent the bot from posting the same activity over and over again until the next activity is completed. However, every couple hours the bot will send a duplicate message for an activity that has already been shared. I don't know exactly why this is happening, but I think the current hash method is sketchy at best. I'm thinking maybe I need to create an array of completed activities (or their hashes as described above), and use that to rule out the duplicate posting of activities.
The text was updated successfully, but these errors were encountered:
Currently, the bot grabs the most recent activity from the club. It then creates a hash from a string of the activity name, athlete, and activity duration. This hash is used to to prevent the bot from posting the same activity over and over again until the next activity is completed. However, every couple hours the bot will send a duplicate message for an activity that has already been shared. I don't know exactly why this is happening, but I think the current hash method is sketchy at best. I'm thinking maybe I need to create an array of completed activities (or their hashes as described above), and use that to rule out the duplicate posting of activities.
The text was updated successfully, but these errors were encountered: