Example #1
0
def say(source, verb, command, **_):
    statement = parse_chat(verb, command)
    if not statement:
        raise ActionError("Say what?")
    source.display_line("You say, `{}'".format(statement), display='say')
    source.broadcast(raw="{} says, `{}'".format(source.name, statement),
                     display='say', silent=True)
Example #2
0
def reply(source, verb, command, **_):
    if not source.last_tell:
        raise ActionError("You have not received a tell recently.")
    session = sm.player_session(source.last_tell)
    if session:
        tell_message(source, session.player, parse_chat(verb, command))
    else:
        source.last_tell = None
        return source.display_line("{} is no longer logged in".format(source.last_tell))
Example #3
0
def emote(source, verb, command, **_):
    statement = parse_chat(verb, command)
    source.broadcast(raw="{}{} {}".format('' if source.imm_level else ':', source.name, statement))