Skip to content

HemanthKumar-CN/SlackBot_Charlie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Title

SlackBot_Charlie

Demo link:

Backend yet to be deployed...

Table of Content:

About The App

The bot is built using slack.dev/bolt-js and has slash commands to execute functions.

  • /charlie "<message to be sent"> : This command opens a conversation in slack workspace and sends the message you want to send of any length to all the members in the workspace. This functionality is not available in official app, instead sending proffessional DMs is impossible while it creates a group of members you try to send message to. The slash commands solves this hindrance.

  • /charlie "" @user1 @user2...: The above command does send message to each and everyone in the workspace but if any user need to be excluded you mention them using @-(slack mentioning convention).

Charlie bot will come up with more slash commands and functionalities very much helpful for eveyday slack users.

Screenshots

  • About

Home Page

  • charlie reply message

Home Page

Technologies

The tech used are:

Setup

  • download or clone the repository
  • run npm install
  • cd SlackBot_Charlie
  • nodemon index.js

App Configuration

  • Visit this Url
  • Create New app -> From Sractch, Assign a name and workspace Need to define features for your bot - Click on "Add features and functionality"
  • Define slash commands
  • Enable Socket mode -> provide a random token name and generate xapp token
  • On the Event Subscription tab -> Need to subscribe to bot events and Events on behalf of users
  • Select all the events as shown in the image below2
  • In the App home tab: need to - "Allow users to send Slash commands and messages from the messages tab" checkmark this true and continue
  • Oauth/permissions tab: Define Oauth scopes for both Bot token scopes and user token scopes and hence as per these permissions your token will be generated select permissions as shown below 2
  • At the end Install the app to your workspace

Approach

  • Initially started with a slash command of greeting the user on opening the home tab of bot.
  • to implement individual DMs the message conversation needs to be opened and then the message sent, documentation of slack.dev provides for methods to facilitate this.
  • The local server providing backend runs on socket mode with slack [untill the app is deployed on backend server]

Status

  • Yet to be deployed on production workspace.

Upcoming features

  • /delete This will delete all the conversations in that particular channel/private conversation channel
  • /weather This will pick up current location of user and using weather api will fetch the weather data of that place.
  • Implementing sent and read status of messages sent to a user whether in channel or DM

Credits

List of contriubutors:

License

The MIT License (MIT)

Copyright (c) 2016-2018 Robots & Pencils Copyright (c) 2019- Slack Technologies, LLC

About

Slack bot - Charlie

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published