From 9229bae2710077a3cdd59d25ca2afc8b226e232d Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Sat, 7 Sep 2024 02:33:00 -0400 Subject: Add README --- README.md | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++ assets/demo.jpg | Bin 0 -> 280328 bytes assets/logo.jpg | Bin 0 -> 270084 bytes assets/songlinkr.jpg | Bin 270084 -> 0 bytes 4 files changed, 71 insertions(+) create mode 100644 README.md create mode 100644 assets/demo.jpg create mode 100644 assets/logo.jpg delete mode 100644 assets/songlinkr.jpg diff --git a/README.md b/README.md new file mode 100644 index 0000000..ea24e3a --- /dev/null +++ b/README.md @@ -0,0 +1,71 @@ +
+Songlinkr logo
+

Songlinkr

+ +A discord bot for universal music links (using [song.link][1]) + +
+ +## About + +Have you ever wanted to share a song/album/artist on discord but you use +[Tidal][2] and all your buddies use [Spotify][3]? This this is what this bot +is for! Just host it, and add it to your discord server! + +**Here's an example of it in action**: + +
+ +
+ +## Configuration + +Before hosting this locally, you will need to configure yourself a discord bot +and prepare a spot to store it's personal info. Here's how to do so: + +1. From within this repository, run the following: +```sh +mkdir -p secrets && touch secrets/token +``` +2. Head to https://discord.com/developers/applications and create a new + application +3. Head to the bot page and create your bot: + - Give it a name + - Feel free to use the image in `assets/logo.png` as it's icon + - Click the `Reset Token` and copy the token to the `secrets/token` file + you created earlier. + - Turn on the `Message Content Intent` field +4. Configure your bot's OAuth2 settings: + - Tick the `bot` scope (a new dialog will appear) + - Tick the required bot permissions (`Send Messages`, `Read Message History` and + `Embed Links` should be the only ones required) + +Congrats! Your are now ready to start hosting your bot! + +## Installation + +The simplest way to install this is probably using the included +`docker-compose.yml` as it will also configure mounting secrets +using the `secrets` directory. + +If you don't have docker, you can also run compile it yourself using +```sh +go mod download && go mod verify +go build -o songlinkr cmd/songlinkr/main.go +``` + +Please note that this method will require you to manually start the bot +when your computer boots up (and manually restart it if it ever crashes). +You can specify any directory to store the secrets in by passing the +`--secrets-path` argument on launch. + +## Contributing + +If you would like to contribute to this project, feel free to fork it and +submit a patch via `git-send-email`. If you use github, you can also submit a pull +request. + +[1]:https://song.link +[2]:https://tidal.com +[3]:https://spotify.com +[4]:https://go.dev diff --git a/assets/demo.jpg b/assets/demo.jpg new file mode 100644 index 0000000..73eff43 Binary files /dev/null and b/assets/demo.jpg differ diff --git a/assets/logo.jpg b/assets/logo.jpg new file mode 100644 index 0000000..8d85939 Binary files /dev/null and b/assets/logo.jpg differ diff --git a/assets/songlinkr.jpg b/assets/songlinkr.jpg deleted file mode 100644 index 8d85939..0000000 Binary files a/assets/songlinkr.jpg and /dev/null differ -- cgit v1.2.3