A fun little slack app to resurrect past people using "AI"
Originally written by Callum Stsyan and Dan Ellis - https://github.com/saucelabs/slacktalker
Configuration is done by environment variables
- SLACK_BOT_TOKEN - Bot User OAuth Access Token
- DATABASE_URL - SQLAlchemy database uris - https://docs.sqlalchemy.org/en/13/core/engines.html#database-urls
- Mysql example: mysql://root@localhost/slackresurrect?charset=utf8
- Postgres example: postgresql://postgres:@localhost/slackresurrect
- SENTRY_TOKEN - optional - Token to talk to sentry.io
- Create a slack app - https://api.slack.com/apps
- Navigate to the "OAuth & Permissions" sub screen
- Grab the "Bot User OAuth Access Token" and populate the "SLACK_BOT_TOKEN" configuration variable
- Make sure bots scope is added to permission scopes
- Create a database
- Populate the "DATABASE_URL" variable
- Export data from slack - See https://get.slack.help/hc/en-us/articles/201658943-Exporting-your-team-s-Slack-history
- Copy zip to where code is
- Run
python import.py $zipfile
- Celebrate the success