Different Command Prefixes per discord server with discordpy (less than 2 minutes)

Sdílet
Vložit
  • čas přidán 8. 01. 2023
  • In this video I show you how to implement custom command prefixes in discordpy for multiple servers/guilds.
    🗃️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
    - Full Rank / Level Discord Bot
    - Pagination
    - File Handling
    Furthermore, the community and I have discussed many different bots on my discord server and I am periodically updating the playlist with new videos around discordpy2. Make sure to check it out and learn how to create bigger bots or very specific commands.
    🎥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!
    This video might have a related article on my website: www.richardschwabe.de
    My patreon for the super subscribers: / richardschwabe
    Some affiliate links (I will receive a small commission on Amazon) to support the channel at no extra cost for you:
    📚Favorite Books📚
    geni.us/rOy8L
    geni.us/om4z
    geni.us/1l9fKhZ
    geni.us/TpZ1
    geni.us/AbYnW
    🖥️PC Setup🖥️
    Duronic Triple Monitor Arm Stand: geni.us/tQVdeC
    TeckNet Extended Gaming Mouse Pad: geni.us/o12vH0U
    Razer DeathAdder V2: geni.us/N4tP1
    Logitech C920 HD Pro Webcam: geni.us/YlBt8N2
    Dell U2722D UltraSharp 27: geni.us/IkBOd
    Dell S2721DGFA 27 Inch QHD: geni.us/nSmy9
    Beyerdynamic DT 770 PRO: geni.us/i6JR
    ✨Recording✨
    Nikon Z30 Camera Kit + 16-50mm: geni.us/s2dAh
    Rode Procaster: geni.us/MU3ua6h
    Elgato Green Screen: geni.us/BhecX
    STEINBERG UR242: geni.us/ltBdFP
    Elgato Stream Deck Classic: geni.us/koiy5
    🖧Network🖧
    Ubiquiti UniFi SmartPower Redundant: geni.us/wIG3U3
    Ubiquiti UniFi Dream Machine Pro: geni.us/75zJ9BI
    Ubiquiti Networks etc-24-poe: geni.us/hFNiuc
    Ubiquiti UniFi 6 Long-Range: geni.us/GTy23S
    © Created by Richard Schwabe with ❤ ©
    Music License: CZcams Audio Library / Soundstripe
    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 • 4

  • @misanthmizzie462
    @misanthmizzie462 Před rokem

    hello there! Thanks for all these free resources man!
    I have one question with this method in particular. For some reason, every and any message that gets sent in the server loops over the 'get_prefix'. Is that normal/intended? I discovered that by having a print statement in the 'get_prefix' function. The cmd for changing the prefix works as intended and successfully hotswapps the prefix without the need for restart. Storing the prefix works as well (i'm using an sqlite db instead of a list but it shouldn't matter?).
    Cheers and all the best

  • @burger3301
    @burger3301 Před rokem +1

    Wow, my dude, you have some of the most helpful videos I've ever seen although I have not been following.
    Somehow it's easy to tell you actually know a thing or two instead of some 16 year old messing around with discord.py.
    I was logged out for a bit so I didn't sub till now but thanks for this content :)

    • @richardschwabe
      @richardschwabe  Před rokem +1

      Thank you for the kind words. I appreciate that.