def show_emote(_, emote): '''Smile! /emote ID''' try: mapserv.cmsg_player_emote(int(emote)) except ValueError: pass
def cmd_emote(nick, message, is_whisper, match): if not is_whisper: return try: emote = int(match.group(1)) except ValueError: return mapserv.cmsg_player_emote(emote)
def badge_logic(ts): if mapserv.server is None: return global badge_ts if ts > badge_ts + 30: badge_ts = ts emote = 0xC0 if is_shop: emote += 1 if is_afk: emote += 2 if is_idle: emote += 4 if is_shop or is_afk or is_idle: mapserv.cmsg_player_emote(emote)
def show_emote(_, emote): try: mapserv.cmsg_player_emote(int(emote)) except ValueError: pass