Skip to content

mmetesreau/kaamelott-slack-command

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Search and send Kaamelott soundtrack in Slack

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published