Creating a Discord Bot in Python (2025) | Episode 1: Setup & Basics

Поділитися
Вставка
  • Опубліковано 29 лис 2024

КОМЕНТАРІ •

  • @saeyyy
    @saeyyy 2 місяці тому +1

    Amazing, I just started learning python (I know CSS and HTML) and wanted a project but the discord videos coming up first in search all had comments saying they were outdated. I searched by date and found your video and am super stoked to see something so well put together! Commenting, liking, and subscribing for the algorithm, hope more people find your stuff James!

  • @maltyhopperbrewing5513
    @maltyhopperbrewing5513 3 місяці тому +2

    I found the original series and currently watching that and have joined the discord. Welcome back! A video on a killfeed bot that links into a remote server would be great.

    • @James_S
      @James_S  3 місяці тому +1

      Thank you so much. Sure that sounds great thank you I’ll add that to the list of episodes for this series

    • @maltyhopperbrewing5513
      @maltyhopperbrewing5513 3 місяці тому

      @@James_S That would be amazing!

  • @iluk3606
    @iluk3606 3 місяці тому +12

    And when we needed him the most, he returned.

    • @James_S
      @James_S  3 місяці тому +6

      Back for good 🔥

  • @Yowawi
    @Yowawi 11 днів тому +1

    Thank you, you saved the world.

  • @echospace7347
    @echospace7347 Годину тому

    How come you started redoing them? Did you mess up the last?

  • @Al1ve_p1seth
    @Al1ve_p1seth 2 місяці тому +1

    2025 is crazy

  • @diamondmaster7040
    @diamondmaster7040 4 дні тому

    Instead of "Python-3" i put "py -3" and it worked

  • @alaaomran247
    @alaaomran247 14 днів тому

    Which topics I need from python to keep up with u, or to build it again by ma self?

  • @SoulServicez
    @SoulServicez Місяць тому +3

    import discord
    ModuleNotFoundError: No module named 'discord' HOW TO FIX

  • @blouu9635
    @blouu9635 3 місяці тому +4

    i was just watching your old series and you posted a fresh one

    • @James_S
      @James_S  3 місяці тому +1

      Should be similar for the first couple of episodes however then it will be different so you should hopefully be able to transfer your code across

    • @rxrayx
      @rxrayx 2 місяці тому

      real

  • @terart56708
    @terart56708 13 днів тому

    I did puthin instead of python 3 and it worked

  • @zawzszee
    @zawzszee 3 місяці тому +2

    welcome back old friend : D

    • @James_S
      @James_S  3 місяці тому

      Thank you, glad to be back :)

  • @dianalobo704
    @dianalobo704 10 днів тому

    Can you make a tutorial of creating a Music Discord Bot using python?

  • @acrostorm1721
    @acrostorm1721 3 місяці тому

    Finally!

  • @ZERO-OFFICIAL77
    @ZERO-OFFICIAL77 2 місяці тому +3

    And when we needed him the most, he returned

    • @iluk3606
      @iluk3606 28 днів тому

      @@ZERO-OFFICIAL77 Copied comment

  • @CurrentlyStargazing_
    @CurrentlyStargazing_ 2 місяці тому +3

    Having an issue with something simple.. When in terminal i typed python3 --version, It came up with "Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases." But I already have python installed. When i had gone into manage app execution alliances in settings.. All it did was complicate thigs further when I had disabled the shortcut. God I'm stuck and i have no clue what to do..

  • @junjieoyan4800
    @junjieoyan4800 Місяць тому

    This is very helpful! Love your style

  • @milkywayish9315
    @milkywayish9315 3 місяці тому

    I am so happy that you're back!

    • @James_S
      @James_S  3 місяці тому +1

      🔥I’m so glad to be back :))

  • @Ruelor
    @Ruelor 3 місяці тому

    When is your next episode released? Do you have a schedule set or just when you can?

    • @James_S
      @James_S  3 місяці тому

      Next one should be coming out in the next day or two. The plan is to release one every week or two. When I get into the swing of things I’m hoping to release a video every Friday :)

  • @berkeurg
    @berkeurg Місяць тому +1

    I did everything right and my bot is working, ty but I have a problem. I can't see the messages which sent on discord. Please help me why I can't see the messages in terminal.

  • @zivtene791
    @zivtene791 9 днів тому

    yes 2025 was 2 months ago

  • @wolfsshadowgaming
    @wolfsshadowgaming Місяць тому

    @James S - is there something with discord that messes up the bot if you try to change the interact command (from say the ! to a / for example)? I don't think anything else has changed and I have tried everything to get the exact same code to work just changing that out (and even back again) and nothing seems to work. Any suggestions?

  • @zyek_17
    @zyek_17 3 місяці тому

    Nice video!

  • @MorollYTGaming
    @MorollYTGaming 3 місяці тому

    keep up the good work! you earned a sub!

    • @James_S
      @James_S  3 місяці тому

      Thank you so much

  • @PixGTV
    @PixGTV 3 місяці тому

    you just earned a sub !!! keep going

    • @James_S
      @James_S  3 місяці тому

      Thank you so much

  • @sheikhtsukki1190
    @sheikhtsukki1190 3 місяці тому

    Bro can you teach us how to make a music bot?

    • @James_S
      @James_S  3 місяці тому

      Yep sure, I plan to cover that a couple of episodes in

  • @RPG_TaleATTSERVER
    @RPG_TaleATTSERVER 2 місяці тому

    I can’t import discord

  • @David0506.
    @David0506. 26 днів тому

    Whar program are you using?

  • @azeivierhenson6141
    @azeivierhenson6141 Місяць тому

    im getting an error that says [Errno 2] No such file or directory. any idea what im doing wrong here?

  • @milkywayish9315
    @milkywayish9315 3 місяці тому +1

    HELL YEAH

  • @Amane-l4o
    @Amane-l4o 3 місяці тому

    How to make tool that'd DM all your friends in discord

    • @James_S
      @James_S  3 місяці тому

      Sure, I’ll make sure to include an episode in this series about this

    • @Amane-l4o
      @Amane-l4o 3 місяці тому

      @@James_S thanks mate

  • @aryandatla5188
    @aryandatla5188 3 місяці тому

    i get the following error when running the python script using Spyder:
    Error: asyncio.run() cannot be called from a running event loop
    e:\python\bot\main.py:30: RuntimeWarning: coroutine 'Client.run..runner' was never awaited
    print(f"Error: {e}")
    RuntimeWarning: Enable tracemalloc to get the object allocation traceback

  • @Wendover0
    @Wendover0 3 місяці тому

    i stumbled onto this while looking for videos on how to make a discord bot. this is really cool. thanks!!!

    • @James_S
      @James_S  3 місяці тому

      Glad you liked it, thank you :))

  • @GuttermanGaming21
    @GuttermanGaming21 18 днів тому

    "2025"

  • @fitelio5315
    @fitelio5315 2 місяці тому

    THANK YOU

  • @YSGaming01
    @YSGaming01 3 місяці тому

    w

  • @SakulTheSlayer
    @SakulTheSlayer 3 місяці тому

    When's the next video? (btw, loved this video, worked flawlessly)

    • @James_S
      @James_S  2 місяці тому

      Thank you and glad it worked. Next video should be coming out in the next day or two

    • @SakulTheSlayer
      @SakulTheSlayer 2 місяці тому

      @@James_S Can't wait!

  • @CanavaroTM
    @CanavaroTM 2 місяці тому

    I get an error at the end, when I run the bot by running ''main.py''
    This is what the therminal says:
    ''discord.errors.LoginFailure: Improper token has been passed.''

    • @tenchi2075
      @tenchi2075 2 місяці тому

      Same let me know if there’s a fix for this

    • @James_S
      @James_S  2 місяці тому +1

      This is most likely due to the token being passed not being valid for your bot. I’d recommend logging into the discord developer portal, going to the bot section, and regenerating a new token and then paste that into your code. Hopefully that should fix the problem

    • @tenchi2075
      @tenchi2075 2 місяці тому

      I finally found a solution, if the solution stated above doesnt work, then try debugging the code and for some reason the bot will start working, at least for mine.

    • @CanavaroTM
      @CanavaroTM 2 місяці тому

      @@tenchi2075 how do I debug it? I’m pretty new to coding😂🥲

    • @CanavaroTM
      @CanavaroTM 2 місяці тому

      @@tenchi2075 I've found another selution, Adding the discord tool extension, re-open the app and run it through prompt, works fine too!

  • @RPG_TaleATTSERVER
    @RPG_TaleATTSERVER 2 місяці тому

    When I did discord it said the discord was a error and need to change it and it’s not working

  • @darwinprawiranata581
    @darwinprawiranata581 Місяць тому

    I have a problem ModuleNotFoundError: No module named 'audioop', how to solve that? please help me

    • @Lad_Flaver
      @Lad_Flaver Місяць тому

      I'm having this same issue. No matter what I do I can't find anything on how to fix it. I'll let you know if I find anything.

    • @Lad_Flaver
      @Lad_Flaver Місяць тому

      Well, I just found the issue. Audioop has been removed from newer versions of Python. I'm not smart enough to figure out how to fix that other than installing an older version of Python. Doing that fixed the problem for me.

    • @FlyngDtGT
      @FlyngDtGT 4 дні тому

      @@Lad_Flaverwhat version of python?

  • @teamkhaleesi3956
    @teamkhaleesi3956 2 місяці тому

    How do you shutdown the bot properly?

    • @James_S
      @James_S  2 місяці тому

      The best way to do it is in the terminal, pressing Ctrl-C. This will then stop the Python program from running

  • @Shmzi
    @Shmzi 3 місяці тому

    Why The bot only work in the privete didnt work in the server ?

    • @James_S
      @James_S  3 місяці тому

      This might be because of permissions for that specific server. Maybe the server doesn’t allow for bots with administrator permissions?

    • @Shmzi
      @Shmzi 3 місяці тому

      ​@@James_S I gave the bot administrator permission

  • @TheRythmMaster
    @TheRythmMaster 2 місяці тому

    2025??????????? its literally 2024

    • @Not-a-cow-mc
      @Not-a-cow-mc 2 місяці тому +1

      its probably so that people will think its the most updated tutorial (which, it is) and therefore click on it instead of some outdated one that wont work

  • @Oliviaekitten
    @Oliviaekitten 11 днів тому +1

    this guys voice pisses me off like can u please jst not go "OMG THIS IS SO COOL"

  • @officialGoldMonkeVR
    @officialGoldMonkeVR Місяць тому

    bro is one year ahead

  • @stardark2619
    @stardark2619 2 місяці тому

    where were you from 1 year
    😏

  • @aftabshaikh9430
    @aftabshaikh9430 Місяць тому

    Bro thinks it's 2025

    • @BlixderYT
      @BlixderYT 9 днів тому

      Bro changed the system date in python