agermanidis / SnapchatBot

[deprecated] Python library for building bots that live on Snapchat
MIT License
517 stars 105 forks source link

Question about deleting story segments or entire story #17

Closed ShaneIsrael closed 9 years ago

ShaneIsrael commented 9 years ago

Is there a way to have the bot delete the oldest story segments? I had a bot reach what I think was the max story of 4950 seconds and get Forbidden errors when trying to post further and thus needed to wait 24 hours for it to clear.

Thanks

agermanidis commented 9 years ago

Yes, I just need to implement the method on SnapchatBot that calls /bq/delete_story, will get on that soon

ShaneIsrael commented 9 years ago

Awesome thank you! On Feb 23, 2015 3:01 PM, "Anastasis Germanidis" notifications@github.com wrote:

Yes, I just need to implement the method on SnapchatBot that calls /bq/delete_story, will get on that soon

— Reply to this email directly or view it on GitHub https://github.com/agermanidis/SnapchatBot/issues/17#issuecomment-75646350 .

ShaneIsrael commented 9 years ago

One other question related to the story. Do you have any idea why I might occasionally be getting a "403 Forbidden Error" when trying to post to the story. It happens fairly frequently and causes the bot to crash. I noticed it only started happening after the bot started posting quite a lot to the story. But even after letting the story refresh it is continuing to happen frequently. Possibly Snapchat limiting the accounts allowed post frequency?

agermanidis commented 9 years ago

That's likely Snapchat blocking your IP/account due to too many reqs. Try to increase the timeout on the listen method.

N07070 commented 9 years ago

Up to implement this ! :+1:

agermanidis commented 9 years ago

I added a delete_story method on SnapchatBot. My IP has been temporarily blocked by Snapchat right now, so I didn't have time to fully test this, but let me know if you encounter any issues.

N07070 commented 9 years ago

Awesome !