Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add api polling service to message admins when polls exceed threshold #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ops-seyfried
Copy link

Pretty self-explanatory, hopefully.

ops-seyfried and others added 2 commits March 9, 2022 16:22
Add an API polling service to message admins after bad requests excee…
for admin in self.bot.config.admins:
self.bot.connection.privmsg(admin, "Bad polls exceeded threshold. Is the site down?")
self.bot.api_poll_messaged = True
time.sleep(self.api_poll_heartbeat)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
time.sleep(self.api_poll_heartbeat)
time.sleep(self.bot.api_poll_heartbeat)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant