A slack bot focused on increasing lab activity by engaging in general activity in all slack channels.
TASK_BOT_TOKEN - Slack API key used to authenticate the slack bot
TASK_BOT_AUTH - Google Sign in API key to authenticate self
git clone
the repository and then run the following commands:
cd task_bot
npm install
npm run dev
You should see the following message telling you have started the project successfully:
Task Bot is up and running!
You will need to have a local instance of MongoDB running in order to handle the data:
In one tab in your terminal run:
mongod
In another tab run:
mongo task_bot
This is the name of the database for this project.
There is some data that needs to be present in the database to ensure that future manipulation works.
Go to app/scripts
to find all the data generation scripts necessary in order to interact with the bot fully.
There are a list of commands that the task bot will recognize by direct messages - you must be in DM channel for the bot to respond
add_user <@slack_id>
- POST
Adds the specified slack user into the local database
add_user @ijemmao
Adds the slack user @ijemmao
to the local database
add_all_users
- POST
Adds all users in the slack team
get_all_users
- GET
Gets all the users in the local Slack database
get_dali_users
- GET
Gets all the users from the DALI API
poke_channels_activity
- POST
Pokes all the channels with low channel activity in the past week. The message is sent out every Saturday at 10AM.
Note: There are two sources that this bot is interacting with:
- Local Slack Database - Included in this repo, there is a local database that holds Slack related user information
- DALI API - A private API created by @johnlev that stores updated DALI member information
- Ijemma Onwuzulike '19
- Sofia Stanescu-Bellu '20