feat: improve QQ channel setup guide and fix botpy intent flags
This commit is contained in:
@@ -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