Slackbot how to set a reminder for last wednesday of the month or last day of the month

With slackbot, is it possible to set a reminder for every last Wednesday of the month or last day of the month?

2

4 Answers

If you entered the following in Slack, you will be reminded on the 28th day of every month to [Complete My Task].

/remind me to [Complete My Task] on the 28th day of every month
3

I ended up using ifttt.com for this. You can do an "every last day of the month" trigger there and you can have it post to slack. It does require you to give ifttt.com access to your slack account and allow it to post on your behalf of course.

I found that creating 12 custom reminders - one for each month of the coming year worked perfectly for me

EDIT:
Here's a bit of automation to do this for you:

  1. run this (can edit the message and the year):
python -c "import calendar
import datetime
year = 2020
def message(month, day): month_name = calendar.month_name[month] return f'/remind @me to \"Submit timesheet\" at 9:00 {month_name} {day} {year}'
def last_working_day(month): return max(calendar.monthcalendar(year, month)[-1:][0][:5])
all_messages = [message(month, last_working_day(month)) for month in range(1, 12 + 1) if datetime.date(year, month, last_working_day(month)) > datetime.datetime.today().date()]
print('\n'.join(all_messages))"
  1. copy-paste output into slack

This will avoid setting reminders for the dates in the past which slack does not allow.
This unfortunately does not take into account locale-based holidays

1

I tell Slack to remind me every month to set up the team's reminder for that month. Example:

/remind me "Create this month's reminder" on the 21st of every month

I even embed the /remind syntax I'll need. Example:

/remind me "Create this month's reminder. Use this syntax: /remind #team-channel QUOTEMeeting starts in 15 minutesQUOTE on DATE at 1:45pm" on the 21st of every month

When it fires I copy/paste the syntax, replace QUOTE with double quotes and DATE with the date of the meeting. This isn't ideal, but it's pretty easy and works (as long as I'm not on vacation).

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like