Go to file
Daniel 4d12d38186
Merge pull request #21 from SpoticordMusic/dev
PR: Update Spoticord to v2.1.1
2023-09-23 19:54:10 +02:00
.cargo Update dependencies, increase MSRV due to sparse protocol 2023-03-28 14:12:01 +02:00
.githooks I guess no pre-commit formatting 2023-02-21 14:51:40 +01:00
.github Almost ready 2023-09-18 22:39:11 +02:00
src Bump version 2023-09-23 19:51:45 +02:00
.dockerignore Uhm so yeah here's some c o d e 2022-10-31 22:46:34 +01:00
.gitignore Uhm so yeah here's some c o d e 2022-10-31 22:46:34 +01:00
.rustfmt.toml initial commit 2022-10-18 22:59:32 +02:00
CHANGELOG.md Aight fuckit imma do it today 2023-06-08 16:29:00 +02:00
COMPILING.md Bump MSRV to 1.67.0, docker to 1.72.1 2023-09-20 20:26:19 +02:00
CONTRIBUTING.md I guess no pre-commit formatting 2023-02-21 14:51:40 +01:00
Cargo.lock Bump version 2023-09-23 19:51:45 +02:00
Cargo.toml Bump version 2023-09-23 19:51:45 +02:00
Dockerfile Bump MSRV to 1.67.0, docker to 1.72.1 2023-09-20 20:26:19 +02:00
LICENSE Update LICENSE 2023-01-07 13:11:03 +01:00
README.md Bring back stats collection 2023-09-19 13:49:32 +02:00

README.md

Spoticord

Spoticord is a Discord music bot that allows you to control your music using the Spotify app. Spoticord is built on top of librespot (with tiny additional changes), to allow full control using the Spotify client, with serenity and songbird for Discord communication. Being built on top of rust, Spoticord is relatively lightweight and can run on low-spec hardware.

How to use

Official bot

Spoticord is being hosted as an official bot. You can find more info about how to use this bot over at the Spoticord website.

Environment variables

Spoticord uses environment variables to configure itself. The following variables are required:

  • DISCORD_TOKEN: The Discord bot token used for authenticating with Discord.
  • DATABASE_URL: The base URL of the database API used for storing user data. This base URL must point to an instance of the Spoticord Database API.
  • SPOTICORD_ACCOUNTS_URL: The base URL of the accounts frontend used for authenticating with Spotify. This base URL must point to an instance of the Spoticord Accounts frontend.

Additionally you can configure the following variables:

  • GUILD_ID: The ID of the Discord server where this bot will create commands for. This is used during testing to prevent the bot from creating slash commands in other servers, as well as getting the commands quicker. This variable is optional, and if not set, the bot will create commands in all servers it is in (this may take up to 15 minutes).
  • KV_URL: The connection URL of a redis-server instance used for storing realtime data. This variable is required when compiling with the stats feature.

Providing environment variables

You can provide environment variables in a .env file at the root of the working directory of Spoticord. You can also provide environment variables the normal way, e.g. the command line, using export (or set for Windows) or using docker. Environment variables set this way take precedence over those in the .env file (if one exists).

Compiling

For information about how to compile Spoticord from source, check out COMPILING.md.

Contributing

For information about how to contribute to Spoticord, check out CONTRIBUTING.md.

Contact

Discord Shield

If you have any questions, feel free to join the Spoticord Discord server!

License

Spoticord is licensed under the GNU General Public License v3.0.