[PYTHON] How to run Self bot on Discord.py [Easy vandalism! ]

About Self bot

The Self bot, which is also included in the title of this article, may have come to this article without some understanding. A brief explanation for such a person "Make non-BOT users move BOT" It is. Well, this is probably the easiest way to write. To give an example, you can send an Embed message even if it's not a BOT. Maybe you can understand it by writing this much.

Development environment

Python-3.8.5 Maybe Python 3 supports it

code

Torima This time, I will make a guy who sends a specific Embed with a specific message. Other guys will be full if you google. Do your best yourself If you misspell it, it won't work. nice to meet you This time it's annoying, so I'll do it without unnecessary blanks. You can get the User Token as soon as you google.

import discord
client=discord.Client()
TOKEN='Enter UserToken here'
embed=discord.Embed(title='Self',description='bot')
@client.event
async def on_ready():
    print('ready')
@client.event
async def on_message(message):
    if message.content=='test':
        await message.channel.send(embed=embed)
        return
client.run(TOKEN,bot=False)

You can move it with this.

Commentary

Then lightly explain.

import discord
client=discord.Client()

I believe that anyone who has made a BOT even once can understand this, without explanation. By the way, you can change the client on the left side of client = discord.Client () to any character string you like. Well, I have to change the ones I wrote elsewhere, so I think it's okay as it is. It's easy to understand.

TOKEN='Enter UserToken here'

This is the definition of a variable called TOKEN. This can also be renamed. I think this is the easiest to understand, so I think it's easier to use it as it is. If you google UserToken, you can afford to get it.

@client.event
async def on_ready():
    print('ready')

This is the one that just prints ready when it starts up. You don't need it when you make it permanent, but it's better to have it while you're running it yourself. Absolutely.

@client.event
async def on_message(message):
    if message.content=='test':
        await message.channel.send(embed=embed)
        return

It just sends an embed when a specific message (in this case test) is sent. Of course, it can be replaced with other processing. The one in parentheses after on_message can be changed to another string. However, I think the message is the easiest to understand, so I recommend using it as it is.

client.run(TOKEN,bot=False)

Yes, this is the most important. To be honest, I don't care what I wrote earlier. bot = False With this, you can SelfBot. The rest is User Token. This is the one that moves the bot. Yup.

Finally

I don't know if I do this and get banned. Also, this post may be deleted. nice to meet you.

Well, I wrote this post, but in fact, one thing was already posted on qiita on the Selfbot method. So, I happened to know it, but when I saw it, it disappeared. I wrote down the URL in order to share it with other people who can use it. Shit.

Well, I don't know if this is the one that the poster himself erased or the one that the management erased, but I think that it is useful information for trolls for the time being, so please refer to it.

Let's try deleting RTA at the same time. If it is erased, I will post it again. If the account is banned, you can recreate the account. There is nothing I can do if IPBAN is done, but w

At the top, I wrote about how to get a UserToken by myself, but he read it so far. The URL of the site I referred to is awesome.

Tap here to jump to that link.

I'll also write the continuous throw code lightly.

import discord
import time
import random

@client.event
async def on_ready():
    channel_ob=client.get_channel(CHNNEL_ID)
    while True:
        await channel_ob.send('The sentence you want to send')
        time.sleep(1+random.randint(0,3))

I'm omitting ʻon_ready` because I don't need it because I only send it to a specific channel this time.

import discord This is essential for developing Discord Bot

import time import random These two are for countermeasures such as Auto BANBOT installed on the server.

channel_ob=client.get_channel(CHANNEL_ID) The one that gets the object of channel. It can be used when you want to continuously cast to a specific channel.

time.sleep(1+random.randint(0,3)) This is an auto BAN measure. A garbage function that makes it look as if you are doing it manually with an appropriate delay. The reason for using random is the same as above. It doesn't work well unless I import time and random. Just add a delay of 1+ (0 ~ 3) seconds. If you don't need it, just erase it. If you want to make the pace faster, you can lower the number. This is a second, not a millisecond. watch out.

I'm not responsible if it doesn't work. I'm just typing it properly, so if the syntax is wrong, it won't work, and if I misspell it, it won't work, so comment on that. What kind of error did you get? However, I don't know if I write a code other than the one written here and get an error. I have no intention of responding.

See you later.

Recommended Posts

How to run Self bot on Discord.py [Easy vandalism! ]
How to run matplotlib on heroku
How to run Cython on OSX Memo
How to run MeCab on Ubuntu 18.04 LTS Python
How to run Django on IIS on a Windows server
How to register on pypi
How to run Notepad ++ Python
How to run a trained transformer model locally on CloudTPU
Don't lose to Ruby! How to run Python (Django) on Heroku
How to install OpenCV on Cloud9 and run it in Python
Easy copy to clipboard on Linux
How to install mysql-connector-python on mac
How to use Dataiku on Windows
Preparing to run Flask on EC2
How easy is it to synthesize a drug on the market?
How to make a slack bot
How to install graph-tool on macOS
How to install pycrypto on Windows
How to deploy django-compressor on Windows
Notes on how to use featuretools
[EC2] How to run selenium webdriver
How to install OpenCV on Mac
How to install PyPy on CentOS
How to use homebrew on Debian
Misunderstanding on how to connect cnn
How to install TensorFlow on CentOS 7
How to run TensorFlow 1.0 code in 2.0
Notes on how to use doctest
How to install Maven on CentOS
Notes on how to write requirements.txt
How to install Go on Ubuntu
How to install music 21 on windows
How to make a process thread run only on a specific CPU core
[Rails] How to introduce Google Analytics [Easy]
How to install aws-session-manager-plugin on Manajro Linux
How to read pydoc on python interpreter
How to install drobertadams / toggl-cli on Mac
[Kivy] How to install Kivy on Windows [Python]
How to use mecab, neologd-ipadic on colab
How to build Hello, World on #Nix
How to update php on Amazon linux 2
How to use Google Assistant on Windows 10
How to erase Python 2.x on Mac.
How to display emoji on Manjaro Linux
Memorandum on how to use gremlin python
How to install packages on Alpine Linux
How to install Anisble on Amazon Linux 2
How to switch mouse operations on CentOS
How to install richzhang / colorization on Windows 10
How to update security on CentOS Linux 8
How to install Apache (httpd) on CentOS7
How to install php7.4 on Linux (Ubuntu)
How to install Eclipse GlassFish 5.1.0 on CentOS 7
How to install Apache (httpd) on CentOS8
How to test on a Django-authenticated page
How to find large files on Linux
How to install NumPy on Raspberry Pi
How to run a Maya Python script
How to install cx_Oracle on macOS Sierra
Python + chatwork + google extension = How to make an easy and funny chat BOT
How to run GUI programs such as tkinter in Python environment on WSL2