@@ 219,29 219,22 @@
(string-replace
(string-join
`("Commands:"
- "- PREFIXeval <code> => evaluate <code> as a Racket form"
- "- PREFIXregister <name> <code> => register <code> as a trick with name <name>"
- "- PREFIXcall <name> ... => invoke the named trick, evaluating its source code verbatim in a fresh sandbox"
- "- !!<trickname> => shorthand for PREFIXcall <trickname>"
- "- PREFIXshow <name> => show metadata and source for the named trick"
- "- PREFIXupdate <name> <code> => change the source of the named trick; requires ownership or administrator"
- "- PREFIXdelete <name> => delete the named trick; requires ownership or administrator and cannot be undone!"
- "- PREFIXpopular => show a leaderboard of popular tricks"
- "- PREFIXabout => show version info"
- "- PREFIXhelp => show this message"
- "- PREFIXuptime => show uptime in dd:hh:mm:ss"
+ "PREFIX**eval** [_code_]: evaluate [_code_] as a Racket form"
+ "PREFIX**call** [_name_] ...: invoke the trick [_name_], evaluating its source code in a fresh sandbox"
+ "!![_trickname_]: shorthand for !rkt call [_trickname_]"
""
- "The following data is available in the trick environment:"
- "- all symbols from the `threading-lib` package (for utility purposes)"
- "- make-attachment => Procedure that makes an attachment from a byte-string, file name and MIME type"
- "- call-trick => Procedure that calls another trick given a name and arguments"
- "- message-contents => Full text of the invoking command, as a string"
- "- string-args => Message contents after the bot command, as a string"
- "- read-args => Thunk that returns message contents after the bot command, as split by the Racket reader, or #f if there was a split failure"
- "- emote-lookup => Function that takes an emote name and returns its ID (or #f if none exists)"
- "- emote-image => Function that takes an emote snowflake and returns its PNG data (or #f if no such emote exists)"
- "- delete-caller => Thunk that removes the call or eval command that ran this code"
- "- parent-context => Mapping of the above symbols for the trick calling this one, or #f if this trick is top-level")
+ "PREFIX**register** [_name_] [_code_]: register [_code_] as a trick with name [_name_]"
+ "PREFIX**show** [_name_]: show metadata and source for the trick [_name_]"
+ "PREFIX**update** [_name_] [_code_]: change the source of the trick [_name_]; requires ownership or administrator"
+ "PREFIX**delete** [_name_]: delete the trick [_name_]; requires ownership or administrator and cannot be undone!"
+ ""
+ "PREFIX**popular**: show a leaderboard of popular tricks"
+ "PREFIX**about**: show version info"
+ "PREFIX**help**: show this message"
+ "PREFIX**uptime**: show uptime in dd:hh:mm:ss"
+ ""
+ "For documentation on what is available in the trick environment, please see the R16 documentation:"
+ "https://docs.racket-lang.org/r16/index.html")
"\n")
"PREFIX" prefix))