Giter Site home page Giter Site logo

clubhouse-story-bot's Introduction

Clubhouse Ticket Bot

This is a small Bot created using Botkit.ai that listenes for new slash commands or @mentions to create tickets in a predefined Clubhouse project.

Deploy

Installation

1. Create a Slack Application

Add a new Bot user following the steps in this Slack Help Center article..

The bot currently supports

  • Slash Commands
  • Direct @mentions of the bot user you created
  • Direct Messages to the bot user

2. Generate a Clubhouse API Token

Generate a Clubhouse API token following the steps in this Clubhouse Help Center article.. This token will later be used to authenticate with the Clubhouse API and be used as the creator for the Stories.

3. Configure credentials

In order for the Bot to be able to authenticate against the different APIs, you will need to configure a set of credentials & token:

  • CLUBHOUSE_TOKEN (Clubhouse)
  • CLUBHOUSE_PROJECT_ID (Clubhouse)
  • BOT_TOKEN (Slack)
  • CLIENT_ID (Slack)
  • CLIENT_SECRET (Slack)
  • CLIENT_SIGNING_SECRET (Slack)
  • VERIFICATION_TOKEN (Slack)

By default, these values are read from the environment you are running the application in. If you want to specify the values in a separate .env file, copy .env.dist to .env and fill in the appropriate values.

5. Run it!

To install all dependencies, run npm install.

Run the app by calling npm run serve if you want to build & run the app at the same time, or first npm build to run the Babel build followed by npm start to start the server.

Development

The bot can be fully customized by altering the code in src/features/slack_features.js. Once you saved your changes, make sure to wipe the build folder ./build or simply run npm run serve to rebuild & run the server again.

clubhouse-story-bot's People

Contributors

tspecht avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.