-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Andrew Sage edited this page Jan 30, 2017
·
7 revisions
Welcome to the slackbot wiki!
Simple steps to run to use the code in your own project:
mkdir bottest
cd bottest
virtualenv venv
source venv/bin/activate
pip install codethecity-slackbot
Create a simple trial program by creating a file called first.py:
from slackbot.slackbot import SlackBot
print("I need pizza")
Run it:
python first.py
It should display:
I need pizza
Once finished, to shut down the virtual environment use:
deactivate
Steps I took to get it running with copy of source code:
mkdir bottest
cd bottest
git clone https://github.com/andrewsage/slackbot.git
cd slackbot
python setup.py develop
virtualenv venv
source venv/bin/activate
pip install codethecity-slackbot
pip install -r requirements.txt