Skip to main content

Russian roulette kick/mute bot

Random do kick/mute to user in specific channel.

  1. Receive channel from user who use the command 
    ctx.message.author.voice.voice_channel 
  2. Get all members in voice channel by accessing its property 
    channel.members
  3. Random to get 1 user, then random to do action that will kick or ban that user
    import random
    
    # To random 1 element from input
    random_element = random.choice(your_list)
    
    # member function
    member.kick()
    member.ban()