Eddiebot: Remind members to contribute to open source

Created on 11 Jul 2020  路  5Comments  路  Source: EddieJaoudeCommunity/EddieBot

Objective

Remind members of the community to contribute to open source. The main idea is for the reminder to go off daily so that members get in the habit of contributing small and often 馃槂. But, the time it goes off should be configured.

_Note: this could be turned off by a policy. If the user doesn't want to be pinged, there must be a command or something else to turn it off._

Proposed Solutions

All the proposed solutions below should use the "engine" developed on #81, to create the reminder. In other words, this reminder for open source contribution should be "an instance" of reminders on the app, where other instances are created by the users themselves.

  • Create a reminder specifically for a message about open source in index.ts. This message is sent by the bot to the channel #opensource of the discord server with a @channel, or perhaps a role that only people who want to be pinged have 馃 .
  • The bot sends a DM to each member daily at a given moment (again, this can be configured) with the reminder message. On the DM, the user can execute a command to be removed from the list of pinged members (this list needs to be persisted)

Questions

I think this feature has been talked on the community and/or Eddie's live streams, so let me know how you think we should approach this 馃槂. Also, do you think this issue should be dependent on #81 or can it be developed without it?

enhancement

All 5 comments

Great idea, you are right this has been discussed quite a bit - not sure there is a clear goal. Probably best a simple solution is implemented and see what people think. Definitely needs to be op in though as some people will not want to be disturbed daily.

It would be good if someone sets their GitHub username in their bio, that it can not notify them if they already contributed on that day

Yes I agree we should start with something simple at first. But do you agree this issue depends on #81 @eddiejaoude? It would use some function or module to set a function to run at a given time, like:

scheduleJob('every day at 4pm', () => {
    // e.g. Send a message to every user subscribed to the opensource channel...
});

I think keep it separate to #81 for now. They might share some common parts, but I think we can abstract any commonality when the 2nd feature is built.

How were you thinking about the scheduler? Maybe using something like this? https://www.npmjs.com/package/node-schedule

Yes, I was thinking of using a 3rd party package, I actually didn't know that one you mentioned. I was experimenting with node-cron, but I might change for that one 馃槄.

I did a quick search, I haven't reviewed it or compared it to that one. We can see which one looks better

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BOLT04 picture BOLT04  路  7Comments

frankiefab100 picture frankiefab100  路  5Comments

schmelto picture schmelto  路  5Comments

Ruth-ikegah picture Ruth-ikegah  路  4Comments

mikeysan picture mikeysan  路  5Comments