{ "name": "ImperialCalendar", "script": "ImperialCalendar.js", "version": "0.1.2", "description": "ImperialCalendar provides a fully featured calendar as used in Traveller, Stars without Number, and other scifi games. It supports notes (public, private, and player specific) and various display formats.\r\r## Commands\r\r```!cal [<--help|--details|--sparse|--whisper|--set|--note|--remove-note|--show|--show-week|--show-4week|--show-5week|--show-year>| ...]```\r\r```!wcal``` -- An alias for `!cal --whisper`\r\r### Date Format\r\rImperialCalendar uses dates of the format `-`, such as `023-1116`. The leading `0`s are optional, so `001-0001` is the same as `1-1`. Anywhere you can use a date, you can also use a relative date by using a number prefixed by either `+` or `-`. These numbers will be used as a day offset from the current day. You can further suffice these numbers with one of `d`,`w`,`y` to specify days (default), weeks, or years. (`D`,`W`,`Y` also work.) In most cases, the `+` is also optional. In fact, you can leave off the number and only specify a suffice. `+7d` is the same as `7d`, `+7`, `d`, `D`, `+d`, `+D`, `+1w`, etc.\r\r### Display\r\rThere are two display modes: **Calendar** and **Journal**.\r\r#### Calendar\rShows you days on a grid. Hover on a day to see it's notes (days with notes have a green background). Click a day to see the journal for that day.\r\r#### Journal\rShows you the notes for the day or days. Notes have a button allowing the owner to delete them. There are buttons by each day for adding notes of each permission type.\r\r### Setting the Date\r`--set|` (GM Only) -- Use `--set` to adjust the current day. The current day is what all relative days are calculated from and is highlighted yellow in the display. Anywhere you can omit the day in a command, the current day is used instead. If you specify an invalid day, the current day is used. \r\r#### Examples\r* `!cal --set|023-1116` -- set the date explicitly to the 23rd day of the year 1116.\r* `!cal --set|+1w` -- set the date relatively by advancing the current date by a week.\r\r### Show Commands\r\r`--show[|[| ..]]` -- use `--show` to show a day.\r\r`--show-week[|]` -- Show the week (Monday-Sunday or the Holiday week) surrounding the provided date or the current date.\r\r`--show-4week[|]` -- As above, but shows also 1 week prior and 2 weeks hence from the date.\r\r`--show-5week[|]` -- As above, but shows 2 weeks prior and 2 weeks hence.\r\r`--show-year[|]` -- Shows the full year including the date. \r* **Note:** This is the only command that will treat a bare number as a year. `!cal --show-year|1116` is equivalent to `!cal --show-year|001-1116`.\r\r`--between||` -- Shows all the days between the two dates. Relative dates are still relative to the current day.\r\r#### Modifiers\r\r`--details` -- Causes a list of days and notes to be shown, rather than a grid calendar. (This is the default for `--show`)\r\r`--sparse` -- Causes a detail view to omit any days without notes.\r\r#### Examples\r* `!cal --show` -- show's the current date.\r* `!cal --show|+1d` -- show's tomorrow.\r* `!cal --show|-1w` -- show's a week ago.\r* `!cal --show|1-1116|10-1116|16-1116` -- show's the 1st, 10th, and 16th days of the year 1116.\r* `!cal --show-week` -- show's the current week.\r* `!cal --show-week|+w` -- show's next week.\r* `!cal --show-year` -- show's the current year.\r* `!cal --between|023-1116|043-1116` -- shows all the days from the 23rd to the 43rd of the year 1116.\r* `!cal --between|023-1116|043-1116 --details --sparse` -- Shows the days with notes from the 23rd to the 43rd of the year 1116.\r\r#### Whisper Examples\r* `!wcal --show` -- Whisper the current day. Whispering is the only time that notes other than public notes are displayed.\r* `!cal --show --whisper` -- Identical to the above.\r\r\r### Note commands\r`--note[|day][[|who] ...]|` -- adds a note. If you omit the day, it is added for the current day. You can specify who can see a note. Use `gm` or `private` for a gm only note (also the default, you can just leave it off), `all` for a public note, or some part of a player's name to restrict it to just the matching players. You can specify multiple `|` separated players.\r\r`--remove-note[|day]|` -- removes a note. If you omit the date, it removes from the current day. If you specify `all`, it will remove all the notes you created on that day (or all notes if you are the gm). If you specify a number, it will remove that index from the specified day (counting from the beginning, starting at 0).\r\r#### Examples\r* `!cal --note|all|Hi everyone` -- adds a note on the current day for all players.\r* `!cal --note|Secret note.` -- adds a note for just the GM.\r* `!cal --note|tom|Tom's note.` -- adds a note for all players with `tom` in there name (ignoring spaces and capitalization).\r* `!cal --note|sally|tom|bob|Small group note.` -- adds a note for 3 or more players.\r* `!cal --note|10-1116|Bomb goes off.` -- adds a GM note on the 10th of the year 1116.\r* `!cal --note|10-1116|all|A good day to be off planet.` -- adds a note for all players on the 10th of the year 1116.\r* `!cal --remove-note|0` -- removes the first note on the current day.\r* `!cal --remove-note|all` -- removes all the notes on the current day.\r\r\r## Settings\r\rThe settings are accessible via the help screen using `!cal --help`.\r\r### Tool Tips\r\rYou can toggle the tool tips on the buttons in the `--details` display. Once you know what the buttons do, the tool tips are a bit annoying. Click the toggle button to adjust them.\r\r### Day Names\r\rClick the name button to change the name.", "authors": "The Aaron", "roll20userid": "104025", "patreon": "https://www.patreon.com/shdwjk", "useroptions": {}, "dependencies": {}, "modifies": { "state.ImperialCalendar": "read,write" }, "conflicts": [], "previousversions": [ "0.1.0", "0.1.1" ] }