Code Monkey home page Code Monkey logo

kaamelott-slack-command's Introduction

Kaamelott slack command

Slack command to send kaamelott soundtracks.

Installation

Slack

Go to https://api.slack.com/apps and sign in to your Slack account.

Create a new app by clicking the Create New App button:

Fill in the required information:

Click on Slash Commands and create a new command by clicking the Create New Command button. Then fill in the required information:

As the application endpoint which listen for commands is /command, the Request URL should be http[s]://[application]/command

Click on Interactivity & Shortcuts and turn on Interactivity. Then fill in the required information:

As the application endpoint which listen for actions is /action, the Request URL should be http[s]://[application]/action

Click on OAuth & Permissions and add the files:write Upload, edit, and delete files on a user’s behalf in User Token Scopes:

Install the application to your workspace by clicking the Install App / Install To Workspace button:

If you want, you can also customize the display information.

Last but no least, the application will need the OAuth Access Token and the Verification Token to run.

The Verification Token could be found in the Basic Information page under the App Credentials section The OAuth Access Token could be found in the OAuth & Permissions page under the OAuth Tokens & Redirect URLs section

Run

Requirements:

  • .NET 6

Powershell:

$env:ACCESSTOKEN="[yourslackaccesstoken]"
$env:VERIFICATIONTOKEN="[yourslackverificationtoken]"
dotnet restore
dotnet fsi .\src\app.fsx

Bash:

export ACCESSTOKEN=[yourslackaccesstoken]
export VERIFICATIONTOKEN=[yourslackverificationtoken]
dotnet restore
dotnet fsi .\src\app.fsx

Using Docker

docker build -t kaamelottslackcommand .
docker run -d -p 8080:[your_port] --env ACCESSTOKEN=[yourslackaccesstoken] --env VERIFICATIONTOKEN=[yourslackverificationtoken] kaamelottslackcommand

Deploy to Heroku

You can deploy this to Heroku by clicking this button:

Deploy to Heroku

Don't forget to set the ACCESSTOKEN and VERIFICATIONTOKEN config vars.

kaamelott-slack-command's People

Contributors

mmetesreau avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  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.