Skip to content
This repository has been archived by the owner on Jun 24, 2023. It is now read-only.

halkeye/slacktalker

 
 

Repository files navigation

About

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

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

Installation

  1. Create a slack app - https://api.slack.com/apps
  2. Navigate to the "OAuth & Permissions" sub screen
  3. Grab the "Bot User OAuth Access Token" and populate the "SLACK_BOT_TOKEN" configuration variable
  4. Make sure bots scope is added to permission scopes
  5. Create a database
  6. Populate the "DATABASE_URL" variable

Importing Existing Data

  1. Export data from slack - See https://get.slack.help/hc/en-us/articles/201658943-Exporting-your-team-s-Slack-history
  2. Copy zip to where code is
  3. Run python import.py $zipfile
  4. Celebrate the success

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 82.8%
  • HTML 12.5%
  • CSS 4.0%
  • Dockerfile 0.7%