scrapinghub / slackbot

A chat bot for Slack (https://slack.com).
MIT License
1.26k stars 396 forks source link

How to access text within message? #196

Open the-machine-preacher opened 4 years ago

the-machine-preacher commented 4 years ago

I used this:

from slackbot.bot import respond_to

@respond_to('Give me (.*)')
def giveme(message, something):
    message.reply('Here is {}'.format(something))

But how do I access the text content of the message itself?