Telegram bot for OMBI
Telegram bot for Ombi Requests
for v4 ombi go to the ombi-v4 branch
(admin can only run these)
authorization is in the images after 2.0. (latest / 2.1)
in your env file, if you provide the BOT_ADMIN env variable with a user id, then authorization will be enabled on bot start, and that user id will be considered admin. the admin will have to add users, to allow them to make request commands.
additionally, admin will have to register and unregister chats to use the bot
here is a table
BOT_ADMIN BOT_CHAT_ID registration auth who_can_search
defined yes yes yes yes users in a registered chat and authorized, initialized with BOT_CHAT_ID
defined yes no yes yes users in a registered chat and authorized
defined no yes no no users in the chat from BOT_CHAT_ID
defined no no no no anyone
you can get your user id from the @userinfobot.
OMBI_HOST=<http://www.ombiserver.com:9090> // The url to ombi instance
OMBI_KEY=<ombi api key> // ombi api key
OMBI_BOT_TOKEN=<telegram token> // telegram bot token
OMBI_BOT_NAME=<telegram bot name> // name of telegram bot
OMBI_USER_NAME=<ombi user name> (OPTIONAL) // ombi user for requests. configure this user with permissions according to your needs
BOT_ADMIN=<admin user id> (OPTIONAL) // admin user id - see authorization section
BOT_CHAT_ID=<allowed chat id> (OPTIONAL) // - see authorization section
available tags: 2.0, 2.1, 1.2, latest, 2.2-OMBI-V4 (for ombi v4 only)
for the latest changes (off master) run docker run --env-file bot.env -d stacktraceyo/ombi-bot:latest
for 2.0 run docker run --env-file bot.env -d stacktraceyo/ombi-bot:2.0
for 1.X release run docker run --env-file bot.env -d stacktraceyo/ombi-bot:1.2
git clone https://github.com/StackTraceYo/ombi-bot
mvn clean install
ombi-bot/ombi-bot/target/ombibot.jar
java -jar ombibot.jar -p full/path/to/bot.env