HomeEsportsbrucedropemoff leaves kick: What Does This Mean Now? (Find Out Here)

brucedropemoff leaves kick: What Does This Mean Now? (Find Out Here)

Alright, today I want to talk about this thing called “brucedropemoff leaves kick” that I messed around with. It’s basically a way to kick someone off your server if they have a certain role, not the most practical of things if I am honest, but still kind of fun to play with.

brucedropemoff leaves kick: What Does This Mean Now? (Find Out Here)

First, I grabbed the * library, ’cause that’s what you need to talk to Discord’s API. I used npm to install it, no big deal. If you’ve never done that, just open your terminal and type npm install * and you’re good to go. It is really that simple, I was surprised.

Setting Up the Bot

  • Then I went to the Discord Developer Portal and made a new application. This is where you get your bot token, which is like a secret password that lets your code control the bot. It is not something you want to share, like ever.
  • After that, I clicked around until I found the “Bot” tab and added a bot to my application. This is also where I copied the token.
  • I enabled some stuff under “Privileged Gateway Intents”. Specifically, I ticked the boxes for “Server Members Intent” and “Message Content Intent”. I am still not completely sure what they do, but without them, my bot seemed to be unable to do anything.

Writing the Code

I opened up my code editor and started a new JavaScript file. I pasted in some basic boilerplate code to get the bot online. I changed a few things, like the command prefix and the role name, to match what I wanted.

I added an event listener for when a message is sent. Inside that, I checked if the message starts with my prefix and if the command is “kick”. Then, the fun part. I fetched the member who sent the message and looked at their roles. This took me a while to figure out, especially since the documentation is not the best.

If they had the “brucedropemoff” role, I called the kick() function on the member object. It was pretty satisfying to see it work. At least the first time. After a few minutes, I got bored of it.

Testing It Out

I invited the bot to my server and gave myself the “brucedropemoff” role. I typed !kick in a channel and bam, I was kicked! I rejoined and tried it a few more times, just to be sure. I felt a bit mean for kicking myself over and over again to be honest.

brucedropemoff leaves kick: What Does This Mean Now? (Find Out Here)

Then, I tried it with some friends. They were not happy, to say the least. I quickly removed the role from them and apologized. Note to self, only do this with people who know it is coming.

Final Thoughts

It was a fun little project to learn more about how Discord bots work. I probably won’t use this specific bot for anything serious, but it was a good way to get my feet wet. I might try making something more useful next time. If you have got any ideas feel free to share them with me.

If you’re interested in trying this out yourself, I can share the full code. Just don’t blame me if you get banned from your own server or lose all your friends! Just kidding, but seriously, be careful with this stuff, and use it responsibly. Do not be like me.

Stay Connected
16,985FansLike
2,458FollowersFollow
61,453SubscribersSubscribe
Must Read
Related News

LEAVE A REPLY

Please enter your comment!
Please enter your name here