Slack bot that will mimic your coworkers' writing tendencies
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


install required packages

$ virtualenv venv
$ source venv/bin/activate
(venv) $ pip install -r requirements.txt

Generate required slack tokens

In order to connect to slack, we will need to generate an authentication token for our bot. You can create a new bot and get the authentication token for it here.

paste token in parrot_bot/

BOT_TOKEN = "insert bot token here"

In addition, if you want your bot to be able to use the Slack API to query slack for messages, you will need to generate another token since, by default, bots are not allowed to do this. The most straightforward way is to generate a token for yourself, and allow the bot to use your token for querying purposes. Keep in mind that this will allow the bot to see and access everything you can see in slack, including private messages.

paste token in parrot_bot/

GROUP_TOKEN = "insert slack group token here"

Set up Home Channel and Startup Channel

Run the following to print out a list of channel ids next to the regular channel name.

(venv) $ python parrot_bot/ -ch channels

Can replace channels with im or mpim to looks fir direct message ids or multi-party IM ids.

Use the output to paste the ids of desired channels into these lines in parrot_bot/

HOME_CHANNEL = "insert channel id of home channel for bot"
STARTUP_CHANNEL = "insert channel id of startup channel for bot"

Run parrot_bot

(venv) $ python parrot_bot/

Then you should just be able to start spewing commands!


You can also replace me with the name of another slack user (without the @ in front) to see something that person might say.