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

best way to make the bot PM everyone in a channel? #133

Open
chrismcfee opened this issue Jul 14, 2015 · 2 comments
Open

best way to make the bot PM everyone in a channel? #133

chrismcfee opened this issue Jul 14, 2015 · 2 comments

Comments

@chrismcfee
Copy link

I'm curious if anyone has a good method of PMing everyone in a specific channel that the bot has joined. Preferably not all at once.

If not, just PMing users in general.

@hailspuds
Copy link

I've had a bit of success getting the bot to PM people in one of my plugins.

This should get you started as an example. Note the pm=None in the function.

from util import hook

def pmUser(input, pm=None):
    pm("Hello. I am a bot and I am PMing you", USER_TO_PM)

(I'm far from an expert in this. Just answering because I think I know the answer and it's been a few months since it was asked, so why not?)

@Red-M
Copy link

Red-M commented Aug 12, 2016

Simply set the channel in your send to the user's nick.

On 12 Aug 2016 9:36 AM, "Will" [email protected] wrote:

I've had a bit of success getting the bot to PM people in one of my
plugins.

This should get you started as an example. Note the pm=None in the
function.

from util import hook

def pmUser(input, pm=None):
pm("Hello. I am a bot and I am PMing you", USER_TO_PM)

(I'm far from an expert in this. Just answering because I think I know the
answer and it's been a few months since it was asked, so why not?)


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#133 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABZoEavikwX1dE-AXWAmp8AfH56AV32Sks5qe7IGgaJpZM4FYpm0
.

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

3 participants