镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Add recurring messages to some channels - #124

Merged
vcarl merged 11 commits into
mainfrom
vc-recurring-messages
Dec 30, 2021
Merged

vcarl merged 11 commits into
mainfrom
vc-recurring-messages

Conversation

@vcarl

@vcarl vcarl commented Dec 7, 2021 •

Copy link
Copy Markdown
Member

Closes #124. We've had support for this forever, but have never actually used them! This re-posts rules to #job-board every day, and some other messages intended to guide new joiners in our highest traffic channels.

Comment thread src/features/scheduled-messages.ts Outdated
@vcarl
vcarl force-pushed the vc-recurring-messages branch from 0bbf0ce to 85b9df8 Compare December 8, 2021 07:29
@vcarl
vcarl changed the base branch from main to vc-debounce-spamlogs December 8, 2021 07:30
Comment thread src/features/scheduled-messages.ts Outdated
Comment thread src/features/scheduled-messages.ts Outdated
Base automatically changed from vc-debounce-spamlogs to main December 8, 2021 16:31
@vcarl
vcarl force-pushed the vc-recurring-messages branch from 85b9df8 to 1ac66a4 Compare December 8, 2021 16:49
Presume to post in Reactiflux, log to #bot-log, small naming/etc changes, add channel ID and frequency constants
This assumes all timers start on sunday at midnight, and resumes them on startup by scheduling for the next intended run from there
Also removes messageConfig from args and just uses the constant
@vcarl
vcarl force-pushed the vc-recurring-messages branch from 0672607 to a2800d3 Compare December 29, 2021 21:57
Comment on lines +117 to +119
bot.on("ready", () => {
MESSAGE_SCHEDULE.forEach((messageConfig) =>
sendMessage(bot, messageConfig),

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Turns out the bug was that I was trying to send messages before the bot logged in, not anything related to permissions/etc 🤦 oh well, we got there

@vcarl vcarl linked an issue Dec 29, 2021 that may be closed by this pull request
},
},
{
postTo: [{ interval: FREQUENCY.often, channelId: CHANNELS.helpJs }],

@BTMPL BTMPL Dec 30, 2021 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While I see the benefit for the jobBoard and helpReact(moreThanWeekly) channels I don't really see what benefit the helpJs and helpReact(often) brings.

Maybe we should improve the new joiner experience in general? e.g. have a channel with a message explaining all of this visible right after joining and having other channels hidden for like 2 minutes, giving everyone time to read?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd quite like to improve the new joiner experience in general, adding some form of onboarding would be awesome — right now we can't control what channel people enter, so I thought repeatedly surfacing info that that's tucked away in channel descriptions was a low-effort way to improve on the current state

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can always update the welcome screen channels (up to 5 supported).

@vcarl
vcarl merged commit b2743d1 into main Dec 30, 2021
@vcarl
vcarl deleted the vc-recurring-messages branch December 30, 2021 20:21
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

Successfully merging this pull request may close these issues.

Add scheduled recurring messages to channels

5 participants