Skip to content

Instantly share code, notes, and snippets.

@endofline
Created July 19, 2015 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save endofline/79267abc34cb2dbe2451 to your computer and use it in GitHub Desktop.
Save endofline/79267abc34cb2dbe2451 to your computer and use it in GitHub Desktop.
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