'Called when an action is detected in channel.
Args:
user (str): User name sending the message.
channel (str): Channel name seeing the message.
msg (str): The message arriving from channel.'

def action(self, user, channel, msg):

    if (not msg.startswith('**')):
        user = user.split('!', 1)[0]
        self.data_in(text=msg, type='action', user=user, channel=channel)
