A Discord bot for scheduling when people are available.
WARNING: This bot is not designed to be run on multiple servers, and most likely has many bugs.
The bot parses queries into tokens, which can then be processed into the corresponding actions.
A query consists of a single ParamType token, and 0 or more ParamVals
- The ParamType describes the type of query (eg. adding available slots, viewing schedule)
- The ParamVals are the values passed into that type of query, (eg. date range from Mon to Fri)
The complete schedule is split into a per-user schedule, which consists of a single week, split into days and then hours.
- The per-user schedule also contains the user's timezone and preferred name
?add from mon to tue 1 2 5 6
: Sets the hours 1, 2, 5, 6 (24h format) from Mon to Tue (inclusive) as available.?remove weekends from 18 to 23
: Sets the hours from 18 to 23 on weekends (Sat and Sun) as unavailable.?view
: View your own schedule.?available mon
: View a per-hour calendar of who is available when on Mon, empty hours are skipped.?timezone -7
: Sets your timezone to -7:00. -7 == -700.
- isolate data by server