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 forwardn
pixels.B<n>
: Move the pointer backwordsn
pixels.L<n>
: Turn the poniter leftn
degrees.R<n>
: Turn the pointer rightn
degrees.A<n>
: Set the angle of the pointer.P<n>
: Set the pen state.n
can be0
for off,1
for 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