Esempio n. 1
0
    def emote(self, message):

        # treat the message
        message = message.strip()

        # implicit punctuation
        if not (
            message.endswith('.') or
            message.endswith('?') or
            message.endswith('!')
        ):
            message = '%s.' % message

        self.message(tags.font(self.name, ' ', message, color = 'blue'))
        self.broadcast(tags.font(self.name, ' ', message, color = 'red'))
Esempio n. 2
0
 def say(self, message):
     self.message((tags.font(self.name, ':', color = 'blue'), ' ', message))
     self.broadcast((tags.font(self.name, ':', color = 'red'), ' ', message))