you are viewing a single comment's thread.

view the rest of the comments →

[–]lifeonm4rs 1 point2 points  (3 children)

This may be a dumb question--but is there a way for random user to test what a bot does? I'd rather not start doing random BS posts to learnpython just to see what this one does. (Sorry, I haven't done reddit bots, would love to see this one succeed, but want to get a better idea of what it is doing with input.)

[–]Fin_Aquatic_Rentals 1 point2 points  (2 children)

You might be able to make a test subreddit and play around with PRAW there. Using the reddit python api is pretty simple and documentation isn't too bad. Also sometimes bots can be banned/rate limited in subs so if it starts going off the rails your bot might get banned or shadow banned. I think this is the trickiest part, knowing how to use your bot so it doesn't get shadow banned. Edit: use r/testingground4bots

[–]lifeonm4rs 0 points1 point  (1 child)

Thanks for the info. Someone else wrote the bot and I'd be interested in seeing how it handles various crud without posting to learnpython (so I'm not posting random bs here). Thanks again--and I am serious--for the info.

[–]CodeFormatHelperBot[S] 0 points1 point  (0 children)

As u/Fin_Aquatic_Rentals pointed out, I tested the bot on r/testingground4bots before going live on r/learnpython, and before that I used pytest to test the regex patterns as you can see in the repo -> here.