【问题标题】:Is there a way to call someone in a private discord call using a python self bot [closed]有没有办法使用python self bot在私人不和谐电话中打电话给某人[关闭]
【发布时间】: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


猜你喜欢
  • 2010-10-23
  • 2020-01-04
  • 2020-12-29
  • 2012-12-17
  • 1970-01-01
  • 2011-07-19
  • 1970-01-01
  • 2022-07-13
  • 2012-02-09
相关资源
最近更新 更多