A relatively basic discord bot for prettifying code
It is run with prefix commands: wawa!<cmd> <args> or w!<cmd> <args>
Use either of the prefixes or a direct mention followed by the command. For example:
wawa!ping: pongwawa!run <code>: run the code (can be in ascii!)wawa!docs <fn>: print the documentation for a functionwawa!pad <code>: format the code and provide a pad link
- ping: pong
- h / help: display this text!
- v / ver / version: display uiua version used by the rest of commands
- f / fmt: run the formatter
- p / pad: format and generate a link to the pad
- d / docs : show the first paragraph or so of the specified function
- r / run: format and run the code
- e / emojify: converts the given code to discord emoji as best as possible
TODO: This was populated but fell out of date
All uiua codeblocks use custom syntax highlighting using the ansi environment (which is
quite limited, discord does not offer many much of the ansi spec).
- Docs command:
w! docs tuplereturns the documentation fortuple -
w! pad <code>Automatic pad link - have
fmtcolor glyphs - have
fmt's colors look good - Catch messages that are too long
- Audio embeds (don't just crash)
- Image embeds (don't just crash)
value_to_image_bytes / value_to_gif_bytes
- Gif embeds (don't just crash)
- Short summary of function in
w! docs - Write out help
- Accept
w!cmdsyntax - Automate command dispatch
- Add
tracing - Detect raw pad links and sent it wrapped (Check if the string contains
https://uiua.org/pad?srcand not(https://uiua.org/pad?src) - Handle single backticks by checking if the last char is a backtick (can't negate an empty stack). same with three
- Slash commands (example 5)
-
w!docs changelog - Fix internal links in documentation (like in
under's docs), probably by regex subst - Add space and time constraints for
w!run - Unify extended message sending function
- Add char limit to advanced (embed) msg sender fn