Skip to content

pirxthepilot/ninjam-slack-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ninjam/slack bot

Monitors a Ninjam server and sends notifications to a Slack channel everytime someone logs in. Also reports the count and list of currently logged in users.

Powered by Errbot!

Prerequisites

  • Python 3.3+
  • pip
  • Virtualenv is recommended
  • Systemd (for the auto-start service)

Installation

First, deploy this repo and install the necessary python modules

git clone https://github.com/pirxthepilot/ninjam-slack-bot.git
cd ninjam-slack-bot
virtualenv --python=$(which python3) virtualenv
. virtualenv/bin/activate
pip install -r requirements.txt

Inside the ninjam-slack-bot dir, create config.py and ninjam.cfg (see included .example files). Set the parameters as needed.

Finally, run errbot:

errbot

or

errbot --daemon

To start automatically as a service with systemd:

Copy the supplied errbot.service.example to /etc/systemd/system/errbot.service. Edit the paths and username in the file - make sure everything is correct!

Then do

systemctl daemon-reload
systemctl enable errbot
systemctl start errbot

Acknowledgments

Huge thanks to:

About

Chatbot for Ninjam server events

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages