Skip to content

A first attempt for a Slack Bot made agaisnt the clock that I hope to one day refactor like a proper project

Notifications You must be signed in to change notification settings

maeriens/afterbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

First attempt for a Slack Bot

I created a virtual environment in my own machine (not sure what to commit and what not) and added the corresponding files to deploy it to Heroku as a worker.

This is based in the basic bot built in FullStackPython

Usage

  • Create a virtual environment. I did it with Python 3.5 for this one.
  • Set up the bot in Slack, and grab it's token
  • You need to set up the Slack bot token as an environment variable
  • Alternatively, you can enter it in the variable in bot.py
  • Put the bot name so the file searches for it
  • Set up the 'trigger words' needed to start/update/list/help
  • If you want to add some responses to certain users, you will need to create files inside the txt folder. They should have the same name as the Slack users Make it a plain text file, with one phrase per line, or a CSV.

To run:

Simply python3 bot.py (locally) or heroku ps:scale worker=0 once pushed

About

A first attempt for a Slack Bot made agaisnt the clock that I hope to one day refactor like a proper project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages