- Retrieve selected conversations from slack, transfer these conversation to a prefered data objects.
- Build api for others to retrieve the data.
- establish a slack bot to react when the slackbot(shoutout) is mentioned.
This app uses the following dependencies:
- dotenv
- @slack/bolt
- @slack/web-api
- fs
- http
Clone the repository: git clone https://github.com/girofu/Epic-slack-app.git
Install dependencies: npm install
This app uses environment variables to store sensitive information. Create a .env file in the root directory of the project and add the following:
SLACK_BOT_TOKEN=your_slack_bot_token_here
SLACK_SIGNING_SECRET=your_slack_signing_secret_hereTo run the app, use the command: node ./src/index.js To run the api, use the command: node ./src/index002.js
This function filters conversations by keywords and emojis and saves them to JSON files.
This app uses the following variables:
- wordFilter: an array of keywords to filter conversations by.
- emojiFilter: an array of emojis to filter conversations by.
- userAddressAndId: a JSON file containing the user addresses and IDs.
- userList: a JSON file containing a list of users.
- userSelectedConversationObject: a JSON file containing the selected conversations.
- tsSelectedJson: a JSON file containing the selected conversations by timestamp.