scrapinghub / slackbot

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

message.reply doesnt work #132

Open cympfh opened 7 years ago

cympfh commented 7 years ago

The example code doesnt work. I doubt that this is because the threads are introduced into Slack API. (but i have no idea)

@respond_to('Hi', re.IGNORECASE)
def hi(message):
    message.react('+1')  # this works
    message.reply('I can understand hi or HI!')  # not work
rwillard commented 7 years ago

I'm having the same problem. I've had this slackbot running for a couple months now, but replies just recently stopped showing up. Reactions are still showing up. I'm investigating

jtatum commented 7 years ago

@cympfh @rwillard are you still experiencing this issue? What python and slackbot versions?

rwillard commented 7 years ago

@jtatum I switched all .reply() to .reply_webapi() and that worked. Python version 3.4.

jtatum commented 7 years ago

I tried the code listed above with Slackbot 0.4.1 on Python 3.4.0 and 3.6.0 and it works with message.reply(). @rwillard, can you please try with slackbot 0.4.1 and provide steps/code to reproduce the problem?