Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/singh1114/slackbot

A simple slack bot
https://github.com/singh1114/slackbot

Last synced: about 1 month ago
JSON representation

A simple slack bot

Awesome Lists containing this project

README

        

# slackbot
A simple slack bot

## Installations

### Using pip

- Fork the repo

`$ virtualenv slackbot`

`$ cd slackbot`

`$ source bin/activate`

`$ git clone https://github.com/YOUR_GITHUB_USERNAME/slackbot`

- change YOUR_GITHUB_USERNAME by your username

`$ cd slackbot`

`$ pip install -r requirements.txt`

`$ sudo apt-get install rabbitmq-server`

- Start the rabbitmq-server once.

`$ rabbitmq-server`

- Use `ctrl+c` to stop the server.

- Now you have start two things simuntaneously.

`$ celery -A event worker --loglevel=info`

- Open another terminal in same directory with virtualenv installed and run

`$ python anotherbot.py`

- Fill in the details of bot in `bot.py` in line _7_ and _8_ and in `events.py` in line _15_

`$ python anotherbot.py`

- Now, in the message box of slack, refer to your bot like @Your_bot_name `timezone`.

- Use the following format for timezone

- if it is `+0530` use `+5.5`
- if it is `+0500` use `+5.0`
- if it is `-0500` use `-5.0`
- if it is `-0550` use `-5.5`

- The bot will send a message at 12:00 pm everyday in the channel.