from __future__ import unicode_literals
# don't convert to ascii in py2.7 when creating string to return

crontable = []
outputs = []


def process_message(data):
    if data['channel'].startswith("D"):
        outputs.append([data['channel'], "from repeat1 \"{}\" in channel {}".format(
            data['text'], data['channel'])]
        )

from __future__ import unicode_literals
# don't convert to ascii in py2.7 when creating string to return

crontable = []
outputs = []


def process_message(data):
    outputs.append([data['channel'], "from repeat1 \"{}\" in channel {}".format(
        data['text'], data['channel'])]
    )

Allow stony to talk in channels other than direct-message channels.
Allow stony to talk in channels other than direct-message channels.

A direct-message channel identifier always starts with the character
'D', (while other channels have identifiers that start with 'C'). By
lifting the restriction of the channel name starting with "D", stony
can now talk in any channel.

Note: There's nothing we can do in the code to instruct stony to join
any particular channel. Instead, stony will need to be invited to any
channel of interest.
