Git Product home page Git Product logo

shepherd-bot's People

Contributors

osir avatar schrer avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

shepherd-bot's Issues

Add option to disable certain commands

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 module to control docker

Add a module that can control docker to do things like

  • listing running containers
  • starting/stopping/restarting containers
  • check health of containers

Create generic SSH command

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.

Add alive check for machines

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

Add config for a default machine

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

Update usage of old Telgram Handler API

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.