How to create a Jokes command in discord with python (Short)

Sdílet
Vložit
  • čas přidán 29. 01. 2023
  • In this video we create a simple Joke discord command, that connects to sv443.net/jokeapi/v2/ via python. Our python discord bot can handle blacklists and nsfw channels.
    If you want to build your own library of jokes you can use praw.readthedocs.io/en/stable/ and check out / jokes - I have explained PRAW in this video:
    • Use python to read the...
    🗃️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 • 5

  • @Sl00ki
    @Sl00ki Před rokem

    Hey! How can I adjust the code so that it will auto run everyday at 10 am and send a random joke to a channel? Keep up the good work!

  • @elamrani6359
    @elamrani6359 Před rokem

    Hey, thanks for you video. Can you do a video to explain how to create bot monitoring webiste on different channel with multiThread.

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

    how to login to discord how to use? and how to connect to the chat and get data from the chat?

  • @boig5107
    @boig5107 Před rokem

    Hello sir, may I request something? Could you make a tutorial on how to create a discord shop bot with buttons? Like, economy settings with balance and shop?

    • @boig5107
      @boig5107 Před rokem

      Shop that not requires you to do a command but instead, on a button.