feat: improve QQ channel setup guide and fix botpy intent flags
This commit is contained in:
1 parent
03d3c69a4a
commit
4f928e9d2a
2 files changed
+17
-13
No files matched your search
@@ -27,7 +27,7 @@ if TYPE_CHECKING:
|
||||
|
||||
def _make_bot_class(channel: "QQChannel") -> "type[botpy.Client]":
|
||||
"""Create a botpy Client subclass bound to the given channel."""
|
||||
intents = botpy.Intents(c2c_message=True)
|
||||
intents = botpy.Intents(public_messages=True, direct_message=True)
|
||||
|
||||
class _Bot(botpy.Client):
|
||||
def __init__(self):
|
||||
|
||||
Reference in new issue
Block a user