Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to send a message without being replied to first? #92

Open
csaftoiu opened this issue Jun 24, 2016 · 5 comments
Open

Is it possible to send a message without being replied to first? #92

csaftoiu opened this issue Jun 24, 2016 · 5 comments

Comments

@csaftoiu
Copy link

Is there any way with the current API to send a message without responding?

If so, how would I do it, and can I request the documentation be updated? (I may update it myself and submit a PR if I figure out how.)

@gpailler
Copy link
Contributor

I have this kind of behavior in AtlassianBot. You can take a look on JiraNotifierBot in https://github.com/gpailler/AtlassianBot/blob/master/plugins/jira.py#L149
The main idea is to retrieve the SlackClient instance, create a thread to monitor something, and send message to the appropriate channel/user...

csaftoiu added a commit to csaftoiu/slackbot that referenced this issue Jun 24, 2016
The approach is to use an idle handler, which gets
called whenever something else hasn't already
happened, or once per second. This should help
reduce rate limiting.

Functional testing has been added.

Updated README.md with how to use the new
functionality.

Resolves scrapinghub#92.
csaftoiu added a commit to csaftoiu/slackbot that referenced this issue Jun 24, 2016
The approach is to use an idle handler, which gets
called whenever something else hasn't already
happened, or once per second. This should help
reduce rate limiting.

Functional testing has been added.

Updated README.md with how to use the new
functionality.

Resolves scrapinghub#92.
@remik
Copy link

remik commented Aug 16, 2016

Probably you are looking for message.send('Lorem ipsum')

@roperi
Copy link

roperi commented Oct 7, 2016

@remik

That's for the bot to send a message to a channel. Unless I'm wrong I don't see how it is that related with this issue.

@lincolnlorscheider
Copy link

I implemented it thusly:

client = slackbot.bot.SlackClient(API_TOKEN)
client.rtm_send_message(client.find_channel_by_name(channel_name), message_string)

@Marviel
Copy link

Marviel commented Jan 27, 2017

I think @lincolnlorscheider answers this question, so this can be closed.

oannam pushed a commit to amuraru/slackbot that referenced this issue May 17, 2018
The approach is to use an idle handler, which gets
called whenever something else hasn't already
happened, or once per second. This should help
reduce rate limiting.

Functional testing has been added.

Updated README.md with how to use the new
functionality.

Resolves scrapinghub#92.
oannam pushed a commit to amuraru/slackbot that referenced this issue May 22, 2018
The approach is to use an idle handler, which gets
called whenever something else hasn't already
happened, or once per second. This should help
reduce rate limiting.

Functional testing has been added.

Updated README.md with how to use the new
functionality.

Resolves scrapinghub#92.
oannam pushed a commit to amuraru/slackbot that referenced this issue May 22, 2018
The approach is to use an idle handler, which gets
called whenever something else hasn't already
happened, or once per second. This should help
reduce rate limiting.

Functional testing has been added.

Updated README.md with how to use the new
functionality.

Resolves scrapinghub#92.
amuraru pushed a commit to amuraru/slackbot that referenced this issue Apr 7, 2020
The approach is to use an idle handler, which gets
called whenever something else hasn't already
happened, or once per second. This should help
reduce rate limiting.

Functional testing has been added.

Updated README.md with how to use the new
functionality.

Resolves scrapinghub#92.
amuraru pushed a commit to amuraru/slackbot that referenced this issue Apr 7, 2020
The approach is to use an idle handler, which gets
called whenever something else hasn't already
happened, or once per second. This should help
reduce rate limiting.

Functional testing has been added.

Updated README.md with how to use the new
functionality.

Resolves scrapinghub#92.
amuraru pushed a commit to amuraru/slackbot that referenced this issue Dec 23, 2021
The approach is to use an idle handler, which gets
called whenever something else hasn't already
happened, or once per second. This should help
reduce rate limiting.

Functional testing has been added.

Updated README.md with how to use the new
functionality.

Resolves scrapinghub#92.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants