Scheduler Module

Manages the scheduling system, and periodically checks for events that need to be processed. To change what channel this module sends birthday notifications or other events to, use !setconfig modules.channels scheduler #channelname.

Configuration

scheduler.birthdayrole

This is the role given to members on their birthday.

Schedule

!schedule [type] [maxresults]

Lists up to maxresults upcoming events from the schedule. If the first argument is specified, lists only events of that type. Some event types can only be viewed by moderators. Max results: 20

type

(optional) Can be one of: bans, birthdays, messages, episodes, events, roles, reminders.

maxresults

(optional) Defaults to 5.

Next

!next [type]

Gets the time until the next event of the given type.

type

(optional) Can be one of: bans, birthdays, messages, episodes, events, reminders.

AddEvent

!addevent <type> [role] <date> [REPEAT N INTERVAL]

Adds an arbitrary event to the schedule table. For example: !addevent message "12 Jun 16" "REPEAT 1 YEAR" happy birthday!, or !addevent episode "9 Dec 15" Slice of Life.

type

Can be one of: ban, message, episode, event, role.

role

(optional) A ping of the role that should be notified. Only include this when using the role event type.

date

A date in the format 12 Jun 16 2:10pm, in quotes. The time, year, and timezone are all optional.

REPEAT N INTERVAL

(optional) INTERVAL can be one of SECONDS/MINUTES/HOURS/DAYS/WEEKS/MONTHS/YEARS. This parameter MUST be surrounded by quotes!

RemoveEvent

!removeevent <ID>

Removes an event with the given ID from the schedule.

ID

The event ID as gotten from a !schedule command.

RemindMe

!remindme [in N seconds/minutes/hours/etc.] [on "2 January 2006 3:04pm -0700"] <message>

Tells Sweetie Bot to remind you about something in the future.

in N seconds/minutes/hours/etc.

(optional) represents a time N units from the current time. The available units are: seconds, minutes, hours, days, weeks, months, years.

on "2 January 2006 3:04pm -0700"

(optional) represents an absolute date and time, which must be in quotes. You must choose the in syntax OR the on syntax to specify your time, not both.

message

An arbitrary string that will be sent to you at the appropriate time.

AddBirthday

!addbirthday <date> <member>

Adds member's birthday to the schedule.

date

The date in the form Jan 2 or 2 Jan - do not include the year!

member

A username or ping.