HOW TO MAKE FULL MUSIC BOT IN DISCORD - This is the BEST Way!

Sdílet
Vložit
  • čas přidán 14. 06. 2024
  • In this video we create a full music bot with discordpy2, lavalink and wavelink. We also create a soundboard that plays sounds in voice channels with button interactions using wavelink.
    Chapters:
    00:00 - Intro
    00:21 - Overview Setup Lavalink
    03:14 - Basic Music Bot commands
    15:02 - Soundboard with buttons
    24:34 - Extra Music Bot commands
    Related Videos for this bot:
    - • Create command categor... Create Cogs
    - • Load command collectio... Load Cogs automatically
    - • How to Add Buttons to ... Create Views & buttons in discord
    - • How to Create Stylised... Create Embeds with pictures
    Note: The bot is not production ready, there are some more code changes in the actual github, as the video got very long and I skipped certain things due to the video constraint. Make sure to checkout the github. i.e you should check for permissions for the soundboard ( • How to Permission Chec... - Create custom checks, or for general checks in the Cog: • Restrict command usage... )
    🔗 URLs 🔗
    - github.com/PythonistaGuild/Wa...
    - github.com/freyacodes/Lavalin...
    - hub.docker.com/r/fredboat/lav...
    - github.com/freyacodes/Lavalin...
    🗃️Github Project URL🗃️
    - github.com/richardschwabe/dis...
    🏆About this course🏆
    My updated course: "How to make a discord bot" with discord.py 2.x covers everything you need to know to raise productivity and user activity on your discord server. By following this course you will learn everything you need to create a successful bot. Resulting in a professional, community driven and feature rich successful discord server.
    The initial videos cover all necessary elements to create anything you want with discordpy, this includes:
    - Registering a discord bot and inviting it to your server
    - Setting up the python project with extra logging functionality
    - Introduction to basic discordpy bot command structure
    - Automatically load bot commands from separate files
    - Handling user input with discordpy converters in a bot instance
    - Handling errors during command execution
    - Grouping commands together for better command organisation
    - Creating discordpy COG (command collections)
    - Loading COG extensions automatically from files
    - Creating checks to limit access on bot commands
    - DMs & "only you can see this" messages
    - Hybrid commands to have both custom bot commands but also "SlashCommands"
    - Dedicated Slashcommands
    - Application commands in context menus for Members and Messages
    - Decorators for Slashcommands
    - Transform any user input in Slashcommands
    - Handling autocompletion and filtering of Slashcommand user input
    - Send rich text embeds with pictures, links and tables
    - Create Views with Buttons for even better user interactions
    - Showing Modals with Selects, TextInputs and Buttons
    🎥Playlist 🎥
    • How to create a DISCOR...
    ❤Community❤
    To support the channel and see more tutorials about technologies:
    👉LIKE & SUBSCRIBE to the channel:
    czcams.com/users/subscription_c...
    👉Join us on our discord server: / discord
    🌲My Linktr.ee 🌲
    linktr.ee/richardschwabe
    🗃️Code to my videos can be found on Github: github.com/richardschwabe
    👉Comment below the video for feedback, suggestions, wishes or if you have spotted a mistake!
    🏷️ Tags 🏷️
    #discordpy, #wavelink, #lavalink, #discord, #python,
    how to make a discord bot,python tutorial,discord bot,discord music bot,python discord bot,discord bot maker,discord py,best discord bots 2022,discordpy,discord bot client,create discord bot python,slash commands discord.py,discord py 2.0,create slash commands discord.py,discord.py slash commands,discordpy cogs,discord.py buttons, discord.py tutorial, discord.py tutorial 2023
    © Created by Richard Schwabe with ❤ ©
    Music License: CZcams Audio Library
    Website: www.richardschwabe.de
    All code examples fall under GNU General Public License v3.0
    We do not recommend using code shown in tutorials or on our Github public repository to run in production environment and should be used for education only.
    We cannot be held liable for any damage caused by the code or do not provide any warranty.
  • Věda a technologie

Komentáře • 23

  • @dragonroyal9116
    @dragonroyal9116 Před rokem

    Nice tsym! Hopefully you start getting more viewers soon!

  • @ancna0156
    @ancna0156 Před rokem

    underrated channel

  • @hanipourkerman6135
    @hanipourkerman6135 Před 11 měsíci

    hey richard, Thank you for amazing fast tuts.
    how can we have a persistance button which will work after bot restart ?

  • @beenland
    @beenland Před 11 měsíci

    How to make the bot become a speaker in a stage channel? I created the musical part of the bot, it connects to the stage channel, but does not become a speaker and you have to manually manage it.

  • @CodeTesting-pd1td
    @CodeTesting-pd1td Před rokem +1

    would slash commands work instead of the old prefix commands?

    • @richardschwabe
      @richardschwabe  Před rokem

      Yes. The wavelink usage is independent of the command structure. You could also use a context menu on the bot.

  • @johnkennethsteinnes1562
    @johnkennethsteinnes1562 Před 7 měsíci

    Hi, i get this message whi i trype !join. How can i fix this?
    Command raised an exception: IndexError: list index out of range

  • @invalidjoker
    @invalidjoker Před rokem

    Can you make a database tutorial/ tutorials

  • @thoryplays
    @thoryplays Před rokem

    Can you tell how we add two or more embeds in one message as a result, like in welcome if we want welcome msg in two embeds msg

    • @richardschwabe
      @richardschwabe  Před rokem

      Thats not possible. However you can send 10 embeds per one webhook

    • @Developer_X_77
      @Developer_X_77 Před rokem +1

      @@richardschwabe You can send multiple embeds in one single message

    • @Developer_X_77
      @Developer_X_77 Před rokem +2

      embed = discord.Embed(
      description="test",
      color=discord.Color.red()
      )
      embed2 = discord.Embed(
      description="test",
      color=discord.Color.blue()
      )
      await ctx.send(embeds=[embed, embed2])

    • @thoryplays
      @thoryplays Před rokem

      @@Developer_X_77 thanks

    • @richardschwabe
      @richardschwabe  Před rokem

      Thank you for the correction

  • @mr.electron5295
    @mr.electron5295 Před rokem +1

    amazing
    can u please make a game bot to
    related to pokimon pls sir

    • @richardschwabe
      @richardschwabe  Před rokem

      Yes. Preparation has started. Recording probably today. However i am trying to get the video shorter. So it will be a slightly different format

    • @mr.electron5295
      @mr.electron5295 Před rokem

      @@richardschwabe waiting for it sir

  • @Kraxplorer
    @Kraxplorer Před rokem

    And how to make a loop command?

    • @richardschwabe
      @richardschwabe  Před rokem

      What do you mean by loop ? You could create a toggle attribute such as self.loop = True and check in on_wavelink_track_end to just play the same track again if self.loop, if you wanted to play a list again, the concept could be similar, but instead of playing the track from the on_wavelink_track_end event, you would need to work with the queue and just add it at the end.

  • @user-lq9oy1wq5z
    @user-lq9oy1wq5z Před rokem

    I can't understand where am I going wrong
    logger = settings.logging.getLogger(__name__) always shows Requested setting logging, but settings are not configured. You must either define the environment variable SETTINGS_MODULE or call settings.configure() before accessing settings T^T

    • @richardschwabe
      @richardschwabe  Před rokem +1

      Do you have a settings file?

    • @user-lq9oy1wq5z
      @user-lq9oy1wq5z Před rokem

      @@richardschwabe I spent some time checking and found you were right now he works fine thank you a lot, Why are videos with high quality content not watched? :(