How To Code a Discord Bot In Python Tutorial | Part 2 - Moderation Commands (Kick/Ban/Mute/Timeout)

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ธ.ค. 2024

ความคิดเห็น • 32

  • @isheronski
    @isheronski  2 ปีที่แล้ว +6

    NOTE!! In the ban and kick commands don't include None, make sure it is just reason and not reason: None!
    Join my new discord server if you need any coding help: discord.gg/sYfZhAAJ9z
    Like and subscribe if you enjoyed, I would appreciate that!

  • @myronrudyi
    @myronrudyi 10 หลายเดือนก่อน +1

    Amazing tutorial! Still actual for python newbie in 2024)

  • @39-swayamphanse9-f7
    @39-swayamphanse9-f7 ปีที่แล้ว +2

    Incredible Tutorial! You explained everything really well. Nice video. But you just showed your bot token in the video which isn't really safe. You can use environment variables to save the bot token.

    • @nixxyy_0
      @nixxyy_0 ปีที่แล้ว

      he can just reset it every time he one so dont worry

  • @ZombossLordOfDoom
    @ZombossLordOfDoom 9 หลายเดือนก่อน

    For everyone having problems with the mute, add "import datetime" to the top of your code.

    • @ReversalFXG
      @ReversalFXG 6 หลายเดือนก่อน

      still dont work😊

    • @ZombossLordOfDoom
      @ZombossLordOfDoom 6 หลายเดือนก่อน

      @@ReversalFXG skill issue

  • @tesy.mp3876
    @tesy.mp3876 2 ปีที่แล้ว +1

    Nice tutorials, very useful. Thanks and keep it up😄

  • @CrimsonCreatorStudio
    @CrimsonCreatorStudio 5 หลายเดือนก่อน

    the mute command didnt work for me

  • @ReversalFXG
    @ReversalFXG 6 หลายเดือนก่อน

    it doesnt work for me...

  • @joshyd4620
    @joshyd4620 ปีที่แล้ว +1

    I don't know if you will actually see this but how do you make the ban length a set time? I know some bots have a feature where you can ban them for a set length of time but I would like to know how you can do that. Hope you can help!

    • @isheronski
      @isheronski  ปีที่แล้ว +2

      Using the same method to ban a user add a line await asyncio.sleep() to wait a certain amount of time then write another line to unban the user

  • @diggacountr
    @diggacountr ปีที่แล้ว

    Amazing tutorial!

  • @labouria
    @labouria 2 ปีที่แล้ว

    what a lovely test subject 😋

  • @apmenn926
    @apmenn926 2 ปีที่แล้ว

    Hi, nice video, it help me so much, but i have question, it is possible to add custom maximum countdown, like mute for maximum 5minutes?

    • @isheronski
      @isheronski  2 ปีที่แล้ว

      Yes, just use an if else statement to check if timelimit exceeds 5minutes

  • @hellishh_
    @hellishh_ ปีที่แล้ว

    can you send the lines of code for the mute command? I am having some errors and I cannot find where I messed up I am just a tad bit confused and it would help me greatly.

    • @isheronski
      @isheronski  ปีที่แล้ว

      Discord for help: discord.gg/sYfZhAAJ9z

  • @RoranoaZoro-u5z
    @RoranoaZoro-u5z ปีที่แล้ว

    someone help pls. my mute command works but i get an error when kicking or banning saying "Converting to "NoneType" failed for parameter "reason"

  • @mr.codelyctal9643
    @mr.codelyctal9643 ปีที่แล้ว

    Uhm hey you there the timeout doesn't work it gives a long list of error

    • @isheronski
      @isheronski  ปีที่แล้ว

      Discord for help: discord.gg/sYfZhAAJ9z

  • @Thanh.Meijin
    @Thanh.Meijin ปีที่แล้ว

    Very useful but I can't use it cause some error

  • @Yamkaun
    @Yamkaun 2 ปีที่แล้ว

    No working (

    • @isheronski
      @isheronski  2 ปีที่แล้ว +1

      It's working fine, you must've made a mistake in the code

    • @chilfghfh1949
      @chilfghfh1949 ปีที่แล้ว +1

      I was having an error with the kick feature, if you're having the same problem,, just switch reason:None to reason="none"
      then change the if statement to 'if reason == "none":

  • @perplexed2601
    @perplexed2601 2 ปีที่แล้ว

    umm can you give your discord server link?

    • @isheronski
      @isheronski  2 ปีที่แล้ว

      discord.gg/sYfZhAAJ9z