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

A daily post to #Announcement channel of the days' events #18

Open
Chalta opened this issue Jul 13, 2018 · 6 comments
Open

A daily post to #Announcement channel of the days' events #18

Chalta opened this issue Jul 13, 2018 · 6 comments
Labels
enhancement New feature or request Registrations This is a pco registrations feature issue. Resources This is a pco resources issue.

Comments

@Chalta
Copy link

Chalta commented Jul 13, 2018

Perhaps the target channel would be configurable, depending on where users would want to see this information. (Perhaps some users would prefer #general or #resources or #bookings or #somethingelse.)

Sort by time (chronological) or subgroup by venue?

Possible format:

Here's the events happening at [Church Name] today!

Women's Bible Study
Room 105 (1300-1430)
resources.planningcenter.com/eventIDurl

Thursday Night Basketball
Gymnatorium A (1800-2230)
resources.planningcenter.com/eventID2url

@Chalta Chalta changed the title Could be nice to have a daily post to #Announcement channel of the days' events A daily post to #Announcement channel of the days' events Jul 13, 2018
@pastorhudson pastorhudson added Registrations This is a pco registrations feature issue. Resources This is a pco resources issue. labels Jul 13, 2018
@pastorhudson
Copy link
Owner

I love this idea! Long term I'd like to see sms support and integrated sms lists so this would be fantastic to txt out as well!

@pastorhudson
Copy link
Owner

We could roll the birthday's #15 into this same feature.

@Chalta
Copy link
Author

Chalta commented Jul 19, 2018

Scheduled announcements can be placed here:
https://github.com/pastorhudson/pcobot/blob/master/plugins/pco/announcements.py

Perhaps call the related functions directly when making an announcement? Semi-pseudo-code.

@periodic(hour='10', minute='0', day_of_week="wed")
def announce_setlist(self):
    pco_setlist_lookup(self, message, sunday)

Now how to set target channel for self.say on a called function?

@pastorhudson
Copy link
Owner

Look at the will.plugins.admin.keepalive.py
There is a ping command that is called as a webhook from /ping. It has no channel info and doesn't receive or pass a message object in the say command. I bet if you just don't take or give message object it will post in default channel. Default channel can then be set to announcements.

@route("/ping")
    def ping(self):
        self.say("Someone pinged me!")
        return "PONG"

@Chalta
Copy link
Author

Chalta commented Jul 20, 2018

I have a proof-of-concept working for calling a WillPlugin function from within another WillPlugin.

#55

Now we just need to create the Resources functions that will return events.

@pastorhudson
Copy link
Owner

Do you have any ideas how this could be turned on and off through slack? A guiding principle for this project is that we need to be able to control things through slack. So what if I want to turn off birthday notifications? Or turn on setlist?

@pastorhudson pastorhudson added the enhancement New feature or request label Sep 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Registrations This is a pco registrations feature issue. Resources This is a pco resources issue.
Projects
None yet
Development

No branches or pull requests

2 participants