TWO HOUR COURSE: How to Create a FULL Level System Discord Bot (Python Edition)

Sdílet
Vložit
  • čas přidán 13. 06. 2024
  • In this video we create a full discord bot that functions as a level system / rank system. We create a leaderboard command, custom rank images for users, restrict command usage to a bot command channel, integrate webhooks to post rank updates to dedicated announcement channel. We also handle discord file attachments, create an extendable project structure. Furthermore, we have custom commands that are restricted by a custom has_rank check, and a way to manually add points to our discord members.
    If you want to follow along you can download the starting script here:
    github.com/richardschwabe/lev...
    We use discordpy 2.1 in this video
    ✪ Chapters ✪
    00:00 - Intro
    01:00 - Project Setup
    02:45 - Rank Controller
    04:40- Custom Bot Class
    09:30 - Filter messages
    10:53 - Controller Methods
    11:50 - First Model
    13:00 - Database Intro
    14:10 - Users Models
    15:20 - Shared Base Model
    18:00 - User Model
    19:27 - Useractivity Model
    22:05 - Setup Database
    23:21 - Testing & Fixing
    24:30 - Saving in Database Start
    25:00 - Start _save_to_db
    26:30 - fetch_user_by_id
    28:30 - adjusting controller methods
    33:10 - record_new_points
    35:00 - get_points
    38:17 - finish record_new_points
    39:29 - Testing & Fixing
    42:20 - Intro Cog
    44:00 - Command Group
    44:22 - Leaderboard Command
    50:00 - LevelSystem
    53: 00 - Get Rank Values
    57:30 - Rank Image
    1:00:00 - Draw Basic Infos
    1:09:00 - Progressbar
    1:15:00 - Draw Avatar
    1:20:00 - Delete Images
    1:21:30 - Testing & Fixing
    1:24:10 - Command Channel Checks
    1:27:30 - has_rank Check
    1:30:20 - Announcement System
    1:36:00 - Messenger System
    1:40:30 - Base Controller
    1:43:40- Bot Handler
    1:49:50 - Manual Points
    1:54:25 - Testing & Fixing
    1:55:10 - Point Modifier based on Role
    2:01:30 - Final Words
    ✦ URL: ✦
    - github.com/richardschwabe/lev...
    - pillow.readthedocs.io/en/stab...
    ❤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✨
    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
    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 • 7

  • @MachineNeil
    @MachineNeil Před rokem

    You are amazing Richard - your work is jaw-dropping. Thank you very much.

  • @itsfuwu99
    @itsfuwu99 Před rokem

    Amazing course Richard! I wish I found your channel sooner!

  • @vegetasego
    @vegetasego Před rokem +1

    Thank you, Rich! You’re over 9,000 my friend!

  • @hyanosuke2625
    @hyanosuke2625 Před rokem

    I was waiting for this

  • @Taki7o7
    @Taki7o7 Před rokem

    Excuse me, but is this tutorial for a single guild or does it support multiple ones?
    Or do you have some video where you make a bot able to work on dozens of servers, with savin/reading guilds from a database, etc?
    Greetings

    • @richardschwabe
      @richardschwabe  Před rokem

      You can introduce a guild field in the database. I did however a simple example for multi guild custom command prefixes. Its in the playlist

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

    sir i have exams right now
    but i am eagrly waiting for them to be over and learn this stuff form you