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

Make the telegram bot detect if a bot is stopped or crashed #526

Open
iThom opened this issue Oct 14, 2021 · 0 comments
Open

Make the telegram bot detect if a bot is stopped or crashed #526

iThom opened this issue Oct 14, 2021 · 0 comments
Labels
feature request Feature request for roadmap

Comments

@iThom
Copy link
Collaborator

iThom commented Oct 14, 2021

First of all thank you for this great idea of telegram bot to control the bot it's brillant !

It would be great to improve the /showinfo command by detecting a long bot inactivity (more than 10min without refreshing it's json file) with the status "stopped".

A way to do it would be to add a metadata last_updated of type datetime or timestamp in the <botname>.json and to check if the last refresh was more than 10 minutes ago for example, then status would be "stopped" otherwise status "active" or the one when it's paused.

My 2 cents :)

@iThom iThom added the feature request Feature request for roadmap label Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Feature request for roadmap
Projects
None yet
Development

No branches or pull requests

1 participant