The-must-install chat bot for Slack.
0.0.1
Python 2.7.10+
Creating a new bot user is easy as a butterfly. Just log in to your slack team in this browser, and click here to create a new bot user.
After you figured out the perfect name of your bot (mine is codinglovebot), you will see some useful info about this bot. The most important is the token. You have to add this token, and the name of your bot to the system environment variables, so let's do it:
export SLACK_BOT_TOKEN={your_slack_bot_token}
export SLACK_BOT_NAME={your_slack_name}After You clone this repo:
(OPTIONAL) You can run this in virtualenv. Just type the followings:
$ virtualenv venv
$ . venv/bin/activateInstall requirements by running this command:
pip install -r requirements.txtFind out the user_id of your bot:
python get_bot_id.pyAdd this ID to the system environment:
export SLACK_BOT_ID={your_slack_bot_id}All set, let run it!!
python codinglovebot.pyIf you can not see any error, and printed out something like this: 'codinglove connected and running!' you are done.
Now You can try this on Your Slack by sending a private message to the bot, something like this:
--> @codinglovebot: send me a nice post
If there is any issue, error, typo or anything, pls let me know, and I will fix it as soon as possible.
MIT
Free Software, Hell Yeah!
szilagyiabo
