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

Поделиться
HTML-код
  • Опубликовано: 8 ноя 2024

Комментарии • 69

  • @saeyyy
    @saeyyy Месяц назад

    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 2 месяца назад +1

    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  2 месяца назад +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 2 месяца назад

      @@James_S That would be amazing!

  • @Al1ve_p1seth
    @Al1ve_p1seth Месяц назад +1

    2025 is crazy

  • @iluk3606
    @iluk3606 2 месяца назад +9

    And when we needed him the most, he returned.

    • @James_S
      @James_S  2 месяца назад +5

      Back for good 🔥

  • @soull.R6
    @soull.R6 20 дней назад +2

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

  • @blouu9635
    @blouu9635 2 месяца назад +4

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

    • @James_S
      @James_S  2 месяца назад +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

    • @rraysmm2
      @rraysmm2 Месяц назад

      real

  • @acrostorm1721
    @acrostorm1721 2 месяца назад

    Finally!

  • @zawzszee
    @zawzszee 2 месяца назад +2

    welcome back old friend : D

    • @James_S
      @James_S  2 месяца назад

      Thank you, glad to be back :)

  • @ZERO-OFFICIAL77
    @ZERO-OFFICIAL77 Месяц назад +3

    And when we needed him the most, he returned

    • @iluk3606
      @iluk3606 7 дней назад

      @@ZERO-OFFICIAL77 Copied comment

  • @junjieoyan4800
    @junjieoyan4800 Месяц назад

    This is very helpful! Love your style

  • @milkywayish9315
    @milkywayish9315 2 месяца назад

    I am so happy that you're back!

    • @James_S
      @James_S  2 месяца назад +1

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

  • @milkywayish9315
    @milkywayish9315 2 месяца назад +1

    HELL YEAH

  • @Wendover0
    @Wendover0 2 месяца назад

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

    • @James_S
      @James_S  2 месяца назад

      Glad you liked it, thank you :))

  • @MorollYTGaming
    @MorollYTGaming 2 месяца назад

    keep up the good work! you earned a sub!

    • @James_S
      @James_S  2 месяца назад

      Thank you so much

  • @PixGTV
    @PixGTV 2 месяца назад

    you just earned a sub !!! keep going

    • @James_S
      @James_S  2 месяца назад

      Thank you so much

  • @CurrentlyStargazing_
    @CurrentlyStargazing_ Месяц назад +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..

  • @sheikhtsukki1190
    @sheikhtsukki1190 2 месяца назад

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

    • @James_S
      @James_S  2 месяца назад

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

  • @Ruelor
    @Ruelor 2 месяца назад

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

    • @James_S
      @James_S  2 месяца назад

      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 :)

  • @wolfsshadowgaming
    @wolfsshadowgaming 29 дней назад

    @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 2 месяца назад

    Nice video!

  • @fitelio5315
    @fitelio5315 Месяц назад

    THANK YOU

  • @David0506.
    @David0506. 5 дней назад

    Whar program are you using?

  • @SakulTheSlayer
    @SakulTheSlayer 2 месяца назад

    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!

  • @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.

  • @Amane-l4o
    @Amane-l4o 2 месяца назад

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

    • @James_S
      @James_S  2 месяца назад

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

    • @Amane-l4o
      @Amane-l4o 2 месяца назад

      @@James_S thanks mate

  • @NT_ATTSEVER
    @NT_ATTSEVER Месяц назад

    I can’t import discord

  • @YSGaming01
    @YSGaming01 2 месяца назад

    w

  • @azeivierhenson6141
    @azeivierhenson6141 Месяц назад

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

  • @aryandatla5188
    @aryandatla5188 2 месяца назад

    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

  • @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

  • @NT_ATTSEVER
    @NT_ATTSEVER Месяц назад

    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 28 дней назад

      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 28 дней назад

      Well, I just found the issue. Audioop has been remove 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.

  • @Shmzi
    @Shmzi 2 месяца назад

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

    • @James_S
      @James_S  2 месяца назад

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

    • @Shmzi
      @Shmzi 2 месяца назад

      ​@@James_S I gave the bot administrator permission

  • @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

  • @officialGoldMonkeVR
    @officialGoldMonkeVR Месяц назад

    bro is one year ahead

  • @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!

  • @stardark2619
    @stardark2619 Месяц назад

    where were you from 1 year
    😏

  • @aftabshaikh9430
    @aftabshaikh9430 9 дней назад

    Bro thinks it's 2025