Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nugget/cowgod
Turntable.fm bot source code
https://github.com/nugget/cowgod
bot golang turntable turntablefm
Last synced: 3 days ago
JSON representation
Turntable.fm bot source code
- Host: GitHub
- URL: https://github.com/nugget/cowgod
- Owner: nugget
- License: mit
- Created: 2012-03-06T18:34:33.000Z (almost 13 years ago)
- Default Branch: main
- Last Pushed: 2023-03-07T02:59:27.000Z (almost 2 years ago)
- Last Synced: 2024-06-21T19:08:44.852Z (7 months ago)
- Topics: bot, golang, turntable, turntablefm
- Language: Go
- Homepage:
- Size: 76.2 MB
- Stars: 5
- Watchers: 6
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Go](https://github.com/nugget/cowgod/actions/workflows/go.yml/badge.svg?branch=main)](https://github.com/nugget/cowgod/actions/workflows/go.yml)
cowgod Turntable.fm bot
=======================Nugget's Turntable.fm alter-ego. This bot has existed in one form or another
for both Turntable.fm as well as Plug.DJ. Originally written in Node/JS it has
now been ported to Go. This bot was created for all the shameless DJs who
hang out in the [Follow the Leader Shamelessly] room on [Turntable.fm].DJ Bot Commands
---------------* `/jump up` Jump up to a DJ spot if available
* `/jump down` Go back to the pit
* `/bop` Vote up the current song
* `/lame` Vote down the current song
* `/skip` Skip the currently playing song
* `/snag` Adds the current playing song to the bottom of the current playlist
* `/random ` Randomize the top *n* items in the current playlist
* `/search ` Search for a song and add the first hit to the top of
the current playlist.Admin Bot Commands
------------------
* `/loglevel ` Adjust the logging level on the console
* `/available` Set the bot to available status
* `/unavailable` Set the bot to unavailable status
* `/away` Set the bot to away status
* `/version` Report the bot's version and build informationUsing
-----You can build and run this bot locally if you have golang installed.
Alternatively, you can run it via the [Docker image]:```sh
docker run nugget/cowgod:latest
```The bot expects to pull its needed configuration from environment variables.
For the TTAPI items, you can use the [Auth Capture Bookmarklet] to find out
what the three values need to be.* `TTAPI_AUTH` : Your bot's turntable.fm authentication token
* `TTAPI_USER_ID` Your bot's user ID
* `TTAPI_ROOM_ID` Your default room ID
* `COWGOD_LOGLEVEL` The initial loglevel (trace, debug, info, warn, error)Useful Links
------------* [ttapi](https://github.com/alaingilbert/ttapi) : New Golang API
* [Turntable-API](https://github.com/alaingilbert/Turntable-API) : Original Node/Javascript API[Docker image]: https://hub.docker.com/repository/docker/nugget/cowgod/general
[Auth Capture Bookmarklet]: http://alaingilbert.github.io/Turntable-API/bookmarklet.html
[Turntable.fm]: https://turntable.fm/
[Follow the Leader Shamelessly]: https://turntable.fm/follow_the_leader_shamelessly