Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Sandipan Dey edited this page Dec 31, 2018 · 5 revisions

Welcome to the melody-discord-bot's wiki!

If you want reasons why this Bot might be the Bot for you, check this out: https://github.com/kickass69/melody-discord-bot/wiki/Why-better-than-Rythm%3F

How to set this Bot Up?

Cloning this Repository to your Computer:

If you have git set up on your computer, use git clone https://github.com/kickass69/melody-discord-bot/ to clone this repository on your device.

Else, use the GitHub's Clone or Download feature to download this repository as a zip file and extract it.

Requirements:

  • Python 3.6 (might not work on 3.7)
  • FFMpeg - Download from here
  • OpusLib - For Linux, sudo apt-get install libopus0 opus-tools or try here for Windows
  • Pip install the following dependencies:
    1. discord - To connect with API
    2. asyncio - To call functions asynchronously
    3. youtube_dl - For download functionality
    4. PyNaCl - To use Voice over streams
    5. bs4 - Beautiful Soup, for Web Scraping of Lyrics

(If you don't have Pip, try sudo apt-get install python3-pip or follow this article if you're on Windows)

Creating the Bot

Click here, login into Discord if not yet, and create a Bot. Quickly create a Bot User, generate your bot's Token and copy it.

Now, go back to the cloned repository folder and open the main.py file in any Text Editor. You'll find a variable TOKEN inside that file.

Update the token's content with the copied token. [Ex: TOKEN = "SaMpLeTOkEn"]

But wait, the bot's already hosted!

The Melody Bot is already hosted 24x7.

Click on the link below and add it to your Discord Server.

https://discordapp.com/api/oauth2/authorize?client_id=519581943948640296&permissions=1115131200&scope=bot

Clone this wiki locally