Giter Club home page Giter Club logo

richardsmusicbot's Introduction

Richard's Music Bot

Richard's coffee shop

๐ŸŽถ Discord bot for playing music from youtube and spotify

๐Ÿ“‹ Public Testing

If you want to try the bot before self-hosting him, you can add already hosted version of the bot, by clicking here!

๐Ÿ”ง Requirements

To set up the self-hosted version of the bot, the following are required:

  1. Node.js v16.9.0 or higher
  2. Discord.js v14

โš™๏ธ Setup

To start, clone the git repository and install all required dependencies:

git clone https://github.com/richardscull/RichardsMusicBot
cd RichardsMusicBot
npm install

After that, create and fill in the .env file with the required information:

# Bot information
DISCORD_TOKEN= Discord application token
DISCORD_ID= Discord application ID

# Yours GitHub working branch
GITHUB_BRANCH_URL= #By default is /master

# Spotify client information
SPOTIFY_ID= Spotify client id
SPOTIFY_SECRET= Spotify client secret
SPOTIFY_REFRESH_TOKEN= Spotify client refrsh token
SPOTIFY_MARKET= Spotify client market

After that, you can successfully run bot by typing npm run build:start or yarn build:start!

richardsmusicbot's People

Contributors

richardscull avatar

Stargazers

6monthpeek avatar  avatar

Watchers

Kostas Georgiou avatar  avatar

richardsmusicbot's Issues

๐Ÿ› ๏ธ Troubleshooting Guide

๐Ÿ‘‹ Hello! Here, I will try to resolve common issues for future self-hosting bot users.

  1. Error [DisallowedIntents]: Privileged intent provided is not enabled or whitelisted.
    Solution: This error happens to you, it may be due to not having the "Server Members Intent" turned on.
    To resolve this issue, follow these steps:

    1. Navigate to the Discord Developer Portal.
    2. Find your bot's application under "Applications".
    3. Click on the name of your bot.
    4. Go to the "Bot" section.
    5. Enable the "Server Members Intent" under "Message Content Intent".
    
  2. An error has occurred while executing /status | AxiosError: Request failed with status code 404
    Solution: This error likely indicates that the "GITHUB_BRANCH_URL" is incorrect or private. A proper URL should have the following structure: repos/YOURUSERNAME/PROJECTNAME/commits/BRANCHNAME

  3. Error: โŒ Unfortunately bot couldn't register custom emotes.
    Solution: This error occurs when your bot is unable to create a new guild for custom emojis, as it is already present in more than 9 servers. If you cannot or do not wish to remove the bot from other servers, you will need to manually register the emojis.
    To do it, follow these steps:

    • Create a new Discord server.
    • Invite your Discord bot to the server.
    • Add the emojis to the server. You can find them in the "/images/emojis" folder.
      • Make sure to name them according to their original names.
    • After adding all the emojis, configure the "emojis.json" file as follows:
       {
            "isGuildCreated": true,
            "ProgressBarStart": "Emojie id here",
            "Playing": "Emojie id here",
            "ProgressBarMedium": "Emojie id here",
            "ProgressBarWaiting": "Emojie id here",
            "ProgressBarEnd": "Emojie id here"
        }

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.