schrer / shepherd-bot Goto Github PK
View Code? Open in Web Editor NEWA Telegram bot for controlling other computers on the same network with WOL and SSH.
License: MIT License
A Telegram bot for controlling other computers on the same network with WOL and SSH.
License: MIT License
Using the config files, it should be possible to disable certain commands. A special message should be sent to a user that tries to use it. Something like "This command is deactivated"
Maybe if the commands permission is set to an empty string, handle it as deactivated?
Add a module that can control docker to do things like
A command should be created, that allows to configure the bot with a file like "ssh-commands.txt", and dynamically load the available commands that can be issued via the /ssh
keyword from this txt-file.
The available commands for /ssh
should be listable via Telegram (e.g. with something like /ssh list
)
As for all commands, authentication is required.
Python doc: https://peps.python.org/pep-0498/
Respond with GIF to unauthorized users.
Make it configurable but for starters, use this one:
https://gfycat.com/essentialspiritedbackswimmer
If the csv files used for config have empty lines at the end of the bot fails. A check for empty lines should be added, empty lines should be ok at the end and between entries.
It would be useful to get a message once a machine, that has been sent a WOL magic packet, is done with startup.
On sending a wake message it would also be helpful to have a check if a machine is already running and a special response to the user if it is running already.
Maybe also a standalone command for alive checks
Create groups that Telegram users can be added to, in order to determine which commands they are allowed to issue.
Never used it, probably never will
Create a new config variable that allows to set one of the machines as a default.
If several machines are set up but no specific machine is chosen for a command, then the default machine should be used
On startup the bot shows this warning:
TelegramDeprecationWarning: Old Handler API is deprecated - see https://git.io/fxJuV for details
updater = Updater(config.TOKEN)
Update the code, so that it uses the current methods provided by the newest version of the Telegram-bot
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.