https://github.com/fulhax/mpdbot
Queue songs to mpd through ircbot or http api
https://github.com/fulhax/mpdbot
bot irc irc-bot mopidy mpd radio
Last synced: 2 months ago
JSON representation
Queue songs to mpd through ircbot or http api
- Host: GitHub
- URL: https://github.com/fulhax/mpdbot
- Owner: fulhax
- License: mit
- Created: 2017-10-30T19:27:12.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-05-04T17:26:11.000Z (about 6 years ago)
- Last Synced: 2025-03-03T00:29:24.782Z (over 1 year ago)
- Topics: bot, irc, irc-bot, mopidy, mpd, radio
- Language: Go
- Homepage:
- Size: 8.39 MB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# mpdbot
[](https://travis-ci.org/fulhax/mpdbot)
Install
`go install github.com/fulhax/mpdbot/cmd/mpdbot`
```
Usage of ./mpdbot:
--debug Enable debug mode
--httpPort string Http port (default "8888")
--ircEnabled Enable irc bot (default true)
--ircNick string Irc nick (default "mpdbot")
--ircServer string irc server (default "127.0.0.1:6697")
--ircTls irc tls (default true)
--mpd string mpd host (default "127.0.0.1:6600")
--mpdPassword string mpd password
```
#### Irc commands
| Event | |
| --- | --- |
| !help | List all available commands |
| !np | Now playing |
| !mpd update | Updates mpd index |
| !mpd add | Add song to queue (fuzzy search) |
| !top | Top 5 queued songs |
| !top | Top 5 queued song by user |
| !autodj | Enable autodj (If user queue is empty it will fetch random song from he's top 200) |
| !mpd start | Start mpdbot queue |
#### HTTP api
| URI | Method | Params | |
| --- | --- | --- | --- |
| /current | GET | | |
| /next | POST | | |
| /add | GET | user, song | |
| /search| GET | search | |
| /status | GET | | |
| /top | GET | user(optional) | |
config.yml
```
debug: false
mpd: 127.0.0.1:6600
mpdPassword: password
httpPort: 8080
ircServer: 127.0.0.1:6697
ircTls: true
ircEnabled: true
ircNick: "mpdbot"
```