scrapinghub / slackbot

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

Handle new line #176

Closed suzuki4 closed 6 years ago

suzuki4 commented 6 years ago

When I use @respond_to, the message with new line doesn't respond. So I fixed AT_MESSAGE_MATCHER to respond the message with new line.

willguxy commented 6 years ago

:+1: i experienced the same issue. wonder if anyone can approve this PR

willguxy commented 6 years ago

@suzuki4 I'm still getting an error message after your change is merged (using 0.5.3 now)

Bad command "...(newline)...", You can ask me one of the following questions:
...

any chance this change is working on your end?

suzuki4 commented 6 years ago

It works in my environment.

@listen_to('([\s\S]*)')
def listen_func(message, something):
    message.reply(something)

Will you tell me whole your error message?

willguxy commented 6 years ago

@suzuki4 i did it wrong. it's working now :+1: