Created
July 19, 2015 12:13
-
-
Save endofline/79267abc34cb2dbe2451 to your computer and use it in GitHub Desktop.
Hangoutsbot Watermark & Typing Fragment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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