Paatu petti in malayalam means Music box.
Modified Version of a simple muisc bot by vbe0201 with added language and playlist support.
- Supports Playlists, this was a feature which was missed in the gist version
- Multiple Languages, depending on the server owners preference, you can add and set you own language
- ping command, to find out if your bot is lagging.
Install the follwing Dependencies
python 3.5+
pip install -u discord youtube_dl pynacl
add FFMpeg to enviornment path(step 12)
- Create a discord bot account by going here and logging in.
- Add a new application.
- Go under bot and click Add bot
- The name that you set here will be seen by members in server
- description set is shown when you click the bot to check its profile
- Now, go under OAuth2 and select the
bot
scope - Select the permission you would like to give your bot
- Required permissions:
- Send Message
- View Channels
- Connect
- Speak
- Add Reactions
- Manage Server
- Read Message History
- Manage Messages
- Required permissions:
- Copy the URL that is generated, It should look something like this:
https://discord.com/api/oauth2/authorize?client_id=<clientID>&permissions=3148864&scope=bot
- The generated URL is the invite that you should give to people when you are adding the bot to a server.
To change the prefix goto line 527 and change the default prefix(.
) to something of your choosing.
If you want to add custom aliases, you can do so by adding a list of strings which can uniquely identify the command under the aliases parameter.
prefix(default = .
) + command or aliases + args(optional)
Command | Aliases | Argument | Description |
---|---|---|---|
play | p | <link or name> |
Plays a song or a playlist from link |
stop | s | Stops playing a song | |
skip | Skips a song | ||
pause | Pauses the playing Song | ||
resume | Resumes the song (if paused) | ||
remove | <no in queue> |
removes a song from the queue | |
lang | <language> |
Changes the language | |
queue | q | Displays the queue | |
leave | dc, disconnect | Disconnect from the channel | |
volume | v | <volume> |
set the volume of the bot |
now | current | shows the song which is being played | |
summon | join | joins the channel of the message author | |
shuffle | shuffles the queue | ||
now | loops the queue |
To add language support(Everything inside Languages folder):
- Make a copy of
en.json
- Rename it a 3 letter or 2 letter code of the language
- Translate the contents of
en.json
into desired language - Append
"<language code>":["<acceptable !lang arguments for the language>"]
eg:"en":["english","en","eng"]
intolanguages.json