Skip to content

I was looking for a simple bot to post to a rocket.chat channel within my RC server. Here it is, hopefully it works for you too!

Notifications You must be signed in to change notification settings

jreiners/sab-rocketchat-notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

sab-rocketchat-notify

alt text

I was looking for a simple bot to post to a rocket.chat channel within my RC server when Sabnzbd finished a download. Here it is!

sudo python -m pip install rocket-python

Finding your roomId:

first configure the API lines in both scripts with your rocketchat username and password, and server URL and run, you should get output like so:

api = RocketChatAPI(settings={'username': 'rocketchat_user_email', 'password': 'rocketchat_user_pass', 'domain': 'http://rocketchat.reiners.io:3000'})

running the find-rooms.py should display this output if your authentication works correctly

[20:27 justin ~]$ ./find-rooms.py
Public rooms
Name: general, ID: GENERAL
Name: quickbox, ID: Gbbk7fgNLWisw2ZuR
Name: test, ID: CsG97m467vAo5Xsn
Private rooms:
Name: private1, ID: 2zsYWT5FrahC45GM

Notification script setup:

Modify the same line api = within sab-rocketchat-notify.py with correct user settings.

Modify the roomId = line with your ID you found running the find-rooms.py script.

copy sab-rocketchat-notify.py file to /home/<user>/SABnzbd/scripts and select from within sabnzbd.

About

I was looking for a simple bot to post to a rocket.chat channel within my RC server. Here it is, hopefully it works for you too!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages