GithubHelp home page GithubHelp logo

paatu-petti's Introduction

Paatu Petti

Paatu petti in malayalam means Music box.

Modified Version of a simple muisc bot by vbe0201 with added language and playlist support.

Features

  1. Supports Playlists, this was a feature which was missed in the gist version
  2. Multiple Languages, depending on the server owners preference, you can add and set you own language
  3. ping command, to find out if your bot is lagging.

Installation

Install the follwing Dependencies

Dependencies

python 3.5+ pip install -u discord youtube_dl pynacl add FFMpeg to enviornment path(step 12)

Adding bot in discord

  1. Create a discord bot account by going here and logging in.
  2. Add a new application.
  3. 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
  4. Now, go under OAuth2 and select the bot scope
  5. 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
  6. 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
  7. The generated URL is the invite that you should give to people when you are adding the bot to a server.

Modifing the code

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.

Commands

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

Contributing

Adding Language Support

To add language support(Everything inside Languages folder):

  1. Make a copy of en.json
  2. Rename it a 3 letter or 2 letter code of the language
  3. Translate the contents of en.json into desired language
  4. Append "<language code>":["<acceptable !lang arguments for the language>"] eg: "en":["english","en","eng"] into languages.json

paatu-petti's People

Contributors

snappiersoap318 avatar therobotichydra 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.