covilbot
Version:
Slack bot which connects with Mopidy and Spotify
51 lines (34 loc) • 2.09 kB
Markdown
Slack bot which connects with Mopidy and Spotify. A fork from [100hz/dopebot](https://github.com/100hz/dopebot).
1. `npm install covilbot --global`
`covilbot --token "<SLACK_TOKEN>" --channel "<SLACK_CHANNEL>" --id "<SPOTIFY_CLIENT_ID>" --secret "<SPOTIFY_CLIENT_SECRET>" --mopidy "<MOPIDY_URL>" --brain`
Please see `covilbot --help`:
```
Usage: covilbot [options]
Options:
--token, -t Set token for the Slack API [string] [required]
--channel, -c Set the Slack channel name to listen for input
[] [required]
--mopidy, -m, -m Set the WS-URL of Mopidy
[] [default: "ws://localhost:6680/mopidy/ws"]
--dialog, -d Only respond to <@covilbot> [boolean] [default: false]
--brain, -b Remember user commands [boolean] [default: false]
--unfurl, -u Unfold Spotify URIs in Slack [boolean] [default: false]
--emoji, -e Covilbot emoji icon in Slack
[] [default: ":loud_sound:"]
--limit, -l, -l Set limit for Spotify API result lists[number] [default: 20]
--id, -i Set the Spotify client Id [string] [required]
--secret, -s Set the Spotify client secret [string] [required]
--verbose, -v Increase verbosity [count]
--help, -h Show help [boolean]
```
For general Slack integration information please refer to the official Slack [documentation](https://api.slack.com/custom-integrations/legacy-tokens).
In the channel where you have added covilbot try: `help` to list all commands.
For Spotify search integration please create an [app](https://developer.spotify.com/my-applications/) to generate client and secret.
- [Ernesto Baschny](http://cron.eu)
- [Sebastian Krüger](http://theblackestbox.net)
MIT © [Sebastian Krüger](http://theblackestbox.net)