Giter Club home page Giter Club logo

cordscrobbler's Introduction

Cordscrobbler

Last.fm scrobbler for songs played by other bots on your Discord server.

Build status

Add to your server


Looking for discord2lastfm? Discord does not accept bots that include "discord" in the name, so the bot is now "Cordscrobbler".

How it works

This bot scrobbles songs played by other bots on your Discord server to Last.fm. It will automatically scrobble if the user is on the same audio channel as the bot, on any server that this bot is added to.

To enable it for you, you'll need to send a message to the bot with -cords register and log in with your Last.fm account.

Supported integrations

Adding to your server

Just click here to add to your server :)

Running from source

This project uses discord.js and needs Node.js LTS to be installed on your machine.

First, install the project dependencies running:

npm install

Then, on the project root folder, create a new .env file and copy the contents of the .env.template.

Replace the following fields:

  • <your-discord-bot-token>: The Discord token for your bot, which can be obtained from the Discord developer portal.
  • <your-spotify-app-client-id> and <your-spotify-app-client-secret>: Tokens from your Spotify integration, which can be obtained on the Spotify developer dashboard. This bot uses the Spotify API to look for track information.
  • <your-lastfm-api-key> and <your-lastfm-shared-secret>: The tokens from Last.fm API, which can be obtained on the Last.fm create API account form.
  • <service-account-key-file-base64>: A service account key file encoded in base64 from a Firebase project. This bot uses Firebase Firestore to store user data.
  • <your-firebase-database-url>: The Firebase Database URL from a Firebase project.
  • <your-topgg-token>: The token from top.gg API, to post bot usage statistics. It is optional, and statistics are only sent when NODE_ENV is set to production.

Remember to keep these tokens in a safe place.

You can also change the bot prefix by replacing -cords .

Finally, to start the bot, run:

npm run build
npm start

Alternatively, you can run npm run watch while testing to automatically reload on file changes.

Contact

If you find any problems during the bot usage, please open an issue here on GitHub. PRs are welcome too!

Feel free to join the Cordscrobbler Discord server. Feedbacks are appreciated!

cordscrobbler's People

Contributors

erick2280 avatar guilhermeasper avatar dependabot[bot] avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.