Zokalyx / theconfluence

1 stars 2 forks source link

theconfluenceBot/new.py Harding of possible failure conditions. corrected some linter errors. Simplified get_random_posts #1

Closed Thejusko closed 2 years ago

Thejusko commented 2 years ago

random changed to rand to use different name from import library removed unused import Prevented use of undefined reddit object Simplified get_random_posts Fixed some linter errors

The while true in main was removed. This was done because a while true is active waiting which indefinitly blocks the used CPU Thread. Which the change to a stream the Script only uses CPU Time when a new message is received.