Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Hangoutsbot Watermark & Typing Fragment
import datetime, time
import hangups
import plugins
def _initialise(bot):
plugins.register_admin_command(["watermark", "typing"])
def watermark(bot, event, *args):
yield from bot._client.updatewatermark(event.conv_id, datetime.datetime.fromtimestamp(time.time()))
def typing(bot, event, *args):
yield from bot._client.settyping(event.conv_id, typing=hangups.schemas.TypingStatus.TYPING)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.