Offer temporary voice channels for users with discordpy

Sdílet
Vložit
  • čas přidán 5. 11. 2022
  • In this video, we'll be showing you how to use Discordpy to create automatic voice and category channels for a clean and organized discord server.
    🔗 URLs 🔗
    - discordpy.readthedocs.io/en/s...
    🗃️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 🏷️
    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 • 10

  • @JustfluffyNora
    @JustfluffyNora Před 4 měsíci

    Okay so it doesnt run the code. I didnt create an extra file for it and used it directly in the main file it doesnt throw any errors whatsoever but also doesnt run this part at all.

  • @barisertemli
    @barisertemli Před rokem

    Hello mate, thank you for the great video.
    How can I make my vscode suggests the rest of the code like yours? You type "discord." and after the point it suggests all available attributes. How can I have that as well?

    • @xXTHEDASHERXx
      @xXTHEDASHERXx Před 8 měsíci +1

      If you have'nt found out yet, you should try adding the "pylance" package to your VS Code.

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

    Hi, it doesn't work for me and gives an error: "TypeError: on_voice_state_update() missing 1 required positional argument: 'after'"

  • @faskyW
    @faskyW Před rokem +2

    I know this video is 2 months old but I try it anyway...
    Is there a way to also delete the channels or category + channels when no user is in the Channel AND most important disconnected from them?
    I am asking because the tutorial only captures the states when users manually switch to another channel but not when they would only disconnect from them :/

    • @richardschwabe
      @richardschwabe  Před rokem

      Even though discordpy is now in version 2.1 all the videos in the playlist are still "up to date", so everything should work.
      The disconnect event, will basically just change the voice state to the same after. I think in the video I forgot to handle the case, to check:
      if not after.channel:
      ....
      But that is effectively how you handle the disconnect. Just check if the new voicestate is None.

    • @yala0452
      @yala0452 Před rokem

      @@richardschwabe I guess it dont. I tried it and I doesnt create a channel

  • @kuriouz1
    @kuriouz1 Před rokem +1

    This is waayy to complicated!!