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.
Python-3.8.5 Maybe Python 3 supports it
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.
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.
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.
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