A Turtle scripting bot for Discord. Give it a script from the quick language below, and it will draw and send an image of the result.
Commands, or single letters, are given to the bot, followed by a number. The number could be a number of pixels, degrees, or a 1 or 0 for true and false. Each command is seperated by a comma.
Here's a quick example, for drawing a 100x100 square:
F100,R90,F100,R90,F100,R90,F100,R90
F<n>: Move the pointer forwardnpixels.B<n>: Move the pointer backwordsnpixels.L<n>: Turn the poniter leftndegrees.R<n>: Turn the pointer rightndegrees.A<n>: Set the angle of the pointer.P<n>: Set the pen state.ncan be0for off,1for on.
The following are slash commands:
/help: Show a message similar to the Syntax section above, detailing how to use the bot/draw <code>: The command to run your script.
To run the bot, there must be two enviroment variables set.
TOKEN: The bot tokenLOG_PATH: A path to the directory in which to store the log file