Skip to content

girofu/Epic-slack-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

172 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Epic-slack-app

  1. Retrieve selected conversations from slack, transfer these conversation to a prefered data objects.
  2. Build api for others to retrieve the data.
  3. establish a slack bot to react when the slackbot(shoutout) is mentioned.

Dependencies

This app uses the following dependencies:

  • dotenv
  • @slack/bolt
  • @slack/web-api
  • fs
  • http

Installation

Clone the repository: git clone https://github.com/girofu/Epic-slack-app.git

Install dependencies: npm install

Configuration

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_here

Usage

To run the app, use the command: node ./src/index.js To run the api, use the command: node ./src/index002.js

Functions

selectConversation(name)

This function filters conversations by keywords and emojis and saves them to JSON files.

Variables

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.

About

Shoutout to anyone you like to!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors