This repository has been archived on 2024-07-28. You can view files and clone it, but cannot push or open issues or pull requests.
xbotlib/examples/whisper.py
2021-01-10 15:05:44 +01:00

21 lines
617 B
Python

from xbotlib import Bot
class WhisperBot(Bot):
"""Pseudo-anonymous whispering in group chats.
In order to activate this bot you can invite it to your group chat. Once
invited, you can directly message the bot outside of the group chat and
tell it you want it to whisper your message into the group chat. The bot
will then do this on your behalf and not reveal your identity. This is nice
when you want to communicate with the group somewhat anonymously.
"""
def react(self, message):
"""Receive direct messages and pass them to group chats."""
pass
WhisperBot()