Send (local & API) Files in Discord with python and discordpy2 (Beginner Full Tutorial)

Sdílet
Vložit
  • čas přidán 7. 01. 2023
  • In this video we look into different ways to send files in discord using python and discordpy2. We are creating a simple !dog command that takes images from an API and sends them as embeds and replicate this behavior with local files of cats for our !cat command. Lastly we also send attachments in discord directly by the example of a !meeting command.
    🗃️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 / FFN3RFZRE7EJCKEZ
    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 • 8

  • @Sl00ki
    @Sl00ki Před rokem +1

    Keep up the good work!

  • @tech-coder
    @tech-coder Před rokem

    Vielen Dank Richard, echt gutes tutorial! :)

    • @richardschwabe
      @richardschwabe  Před rokem +1

      Danke dir, freut mich, dass es dir gefallen hat.

  • @kshitijtyagi5113
    @kshitijtyagi5113 Před 5 měsíci

    can we send videos through this as well?

  • @user-de8uf7eq3u
    @user-de8uf7eq3u Před 11 měsíci

    how to make the bot play music from a local folder

  • @zai_kun
    @zai_kun Před rokem

    how can i send multiple files?

  • @hyanosuke2625
    @hyanosuke2625 Před rokem

    i love you