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

Posting to user #24

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

sorrowless
Copy link
Contributor

Bot will have an option to post message directly to some user. To use this
ability, you should add 'target_user' with user name as an argument of your
'listen_for' decorator.

Stanislaw Bogatkin added 3 commits January 4, 2016 18:12
Change signature of 'listen_for' method by deleting **options
signature from it, as it was broken anyway - you had had no
option to run this with additional named options, but it was
needed to have an ability of pushing options of decorated
function. Instead of it some 'academic' code was added - now
'listen_for' method is a decorator factory which returns
decorator that have new function declared inside. It allows to
push named options of decorated function to it and get rid of
wrong signature of factory.
Bot will have an option to post message in channel different than original
one it was listened to. To use this ability, you should add
'target_channel' with channel name as an argument of your 'listen_for'
decorator.
Bot will have an option to post message directly to some user. To use this
ability, you should add 'target_user' with user name as an argument of your
'listen_for' decorator.
@nficano
Copy link
Owner

nficano commented Jan 11, 2016

I like this idea a lot actually 👍

@rmeyer-taos
Copy link

@sorrowless @nficano I love this idea. Any chance we have an update on when this can be merged? Looks like there are a few minor conflicts to resolve.

@sorrowless
Copy link
Contributor Author

@rmeyer-taos I made that patch long time ago and don't remember too much about that. But if you guys really like that, I'll take a look next week and fix that, np.

@rmeyer-taos
Copy link

No big deal @sorrowless we ended up going a different direction.

Thanks for the response.

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

Successfully merging this pull request may close these issues.

3 participants