[英]Discord.py - Send message as user (not bot)
I have for the moment a code that sends a message but only for my own discord server as a bot.我目前有一个发送消息的代码,但仅适用于我自己的 discord 服务器作为机器人。
What I would like it's automated sending message to others servers to simulate an activity as if it were my main account我希望它能自动向其他服务器发送消息以模拟活动,就好像它是我的主帐户一样
def sendMessage(ch, ms):
client = discord.Client()
@client.event
async def on_ready():
channel = client.get_channel(ch)
await channel.send(ms)
return ""
client.run('token')
How to make the sendMessage
code sending a message using my main account?如何让
sendMessage
代码使用我的主帐户发送消息?
Like Silvio said, if you find a way to send messages as a user through code and you are caught then you might get banned.就像 Silvio 所说的那样,如果您找到一种通过代码以用户身份发送消息的方法并且被抓到,那么您可能会被禁止。 Don't say we didn't warn you!
别说我们没提醒你!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.