-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bot Command Message Interface #16
Comments
This would do a good job of making the bot mirror interaction with LegiScan but that isn't really the goal (at least not the minimum goal). While we absolutely need a mechanism for watching/unwatching bills (#9), we may not need advanced query commands. In the case that a user specifies their own query via an advanced command, it is unclear whether the results should be eligible for automatic watching. |
Also I don't think we need to schedule individual bills. We could schedule scans of all bills instead. If you meant scheduling a manual reminder, that might be something to think about. |
Right, this would be a v2 interface.
The idea behind more advanced queries was such that a bot would be publicly available for other Discord Servers to use as well. We wouldn't know every topic or movement that other users would want to follow, and therefore we wouldn't want to hard code everything.
This was the use case that I had in mind. The initial issue mention that a watching a bill watches for changes - it may be days before a bill's status changes, so reminders about it would be nice. |
Amended original issue with |
Prefixes (including stuff like !legi) are now supported by config prefix command |
In an attempt to make this project a more generalized interface into LegiScan, I came up with commands that could be used for the Discord Bot. This interface makes certain implications about how the bot functions under the hood that I do not plan to discuss in this RFC issue.
Non-exhaustive list of implications that I will discuss here, as a part of the interface:
!legi
is used as a consistency for my idea regarding the bot name,LegiBot
(see Rename project #14 (comment)).!legi
prefix word.""
) where a space (/
) in a command or argument defined here denotes that any, and only one, of the words split by the slash can be used.<>
) and should follow some format. Argument definitions within double quotes (""
) are a defined format. Argument words surrounded by square brackets ([]
) are optional.(s)
is found in the arguments/description.Message Interface:
!legi help [<command>]
displays bot commands and info. DM responses may be preferred.!legi query/scan <state code(s)/"all"> <query> [<schedule>]
performs a query, optionally on a schedule. Hard coded queries could also be implemented and used by adding an additional static string argument afterquery/scan
, denoting that the<query>
argument refers to one that is hard coded.!legi ignore <bill id(s)> <schedule id(s)>
ignores a specific bill(s) for a scheduled query(s).!legi bill <bill id(s)> [<schedule>]
displays a bill(s) info, optionally on a schedule.!legi watch <bill id(s)>
watches for changes to a bill(s) as they are retrieved from master server. Perhaps a way to display changes only during certain times of the day could be useful for highly active channels.!legi schedules
displays scheduled queries and bills. For scheduled queries, displaying the ignored bills may be helpful.!legi watches
displays watched bills.!legi unschedule <schedule id(s)>
unschedules a previously scheduled query(s) and/or bill(s).!legi unwatch <bill id(s)>
unwatches a previously watched bill(s).!legi unignore <bill id(s)> <schedule id(s)>
unignores a previously ignored bill(s) for a scheduled query(s).This original "spec" was posted in the Discord and subsequently modified. Slightly.
The text was updated successfully, but these errors were encountered: