如何通过我的帐户将bot代码转换为我的帐户的selfbot代码,这意味着如果我给出任何命令selfbot答复

时间:2019-09-30 06:01:14

标签: discord discord.py

这是Discord机器人的代码,我想将此代码转换为我的帐户selfbot,因此,我如何在代码中定义selfbot使其适用于我的帐户

import discord
import time
import asyncio
client = discord.Client()
@client.event
async def on_message(message):
    x = client.get_channel(61993237976252417)
    b = client.get_channel(623205069084688394)
    c =  client.get_channel(623888107124555776)

    if message.content == '1' or message.content == 'ff' or message.content == 'f' and message.channel is x:

        await b.send('**f**')

    time.sleep(0.5)
    if message.content == 'b' or message.content == 'g' or message.content == 'g' and message.channel is x:
        await b.send('**g**')
        time.sleep(0.5)

    if message.content == 'u' or message.content == 'c' or message.content == 'cc' and message.channel is x:
        await b.send('**c**')
        time.sleep(0.5)

@client.event
async def on_ready():
    print('Bot Client is ready!')

client.run('bot token')

0 个答案:

没有答案