sibelius / ccsseraphini

cc @sseraphini
https://ccsseraphini.vercel.app/
174 stars 50 forks source link

[Discord] Don't allow to send duplicated tweets on #tweets channel #321

Closed tgmarinho closed 1 year ago

tgmarinho commented 2 years ago

To fix duplicated, cron job can call every 5 minutes, but we can loss some tweets or we can store the latest tweet id sent do discord, maybe using mongoatlas or faunadb

Originally posted by @tgmarinho in https://github.com/sibelius/ccsseraphini/issues/319#issuecomment-1079447045

Nick-Gabe commented 2 years ago

maybe it isn't needed to run every 5 minutes, i think mantaining a cached list of posted tweets and use them to do a verification would be enough to prevent those duplicates

sibelius commented 1 year ago

we have this on #tweets channel already using stream