Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/singh1114/slackbot
- Owner: singh1114
- License: mit
- Created: 2017-11-17T20:13:59.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T23:56:27.000Z (about 2 years ago)
- Last Synced: 2023-02-27T15:11:46.948Z (almost 2 years ago)
- Language: Python
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.