【发布时间】:2022-06-10 19:24:34
【问题描述】:
我已经开始在 python 中创建一个不和谐的自我机器人(是的,我知道它违反了 TOS)。 我希望有一种方法可以在朋友给我发消息“@User 给我打电话”时发起私人通话。
import discord
client = discord.Client()
class MyClient(discord.Client):
async def on_ready(self):
print('Logged on as', self.user)
async def on_message(self, message):
if message.author == friend and "call me" in message.content.lower():
await client.call(friend)
client = MyClient()
client.run("token")
client.call 显然不起作用,所以我希望有办法做到这一点?
【问题讨论】:
-
因为 selfbot 违反了 Discord 的 ToS,我怀疑你会在这里得到任何帮助。
-
堆栈溢出不是要求从头开始编写代码的地方。你现在有什么,为什么它不起作用?
标签: python discord.py