-
Notifications
You must be signed in to change notification settings - Fork 0
Usage
Using the IDE is pretty simple simple. With any commands mentioned, if they don't have dynamic arguments, you probably don't need to actually run the command. Simply run !help
to show the help menu, and there will be blue links to commands. Clicking these will run the command as if it were by you, in the channel of the help embed. There's a bunch of stuff you can do with it, outlined in the sections below:
To start the IDE (After starting the bot), you must first set a channel for the messages to appear in. You can do this by either running !ide setchannel
in the channel you want.
You can then start the IDE via !ide start
. To stop the, !ide stop
can be run, and to remove the bot's messages in the IDE channel and start the bot, run !ide restart
.
Once the IDE is started, it will start to be rendered in the IDE channel. This can take a while, but most subsequent modifications of the window won't take this long. The following is what you should see after starting the IDE:
The keyboard is a 10-keyless ASCII keyboard, minus the function keys. All keys are functional, aside from the Fn key. For key combinations, simply press either Ctrl or Alt and then the desired key. The key will be highlighted when it is ready for a key combination, and will return back to normal after a few seconds.
Keybinds are shown above, but if you can't read images, they are:
Alt + Left/Right Arrows - Switch tabs
Ctrl + R - Run the current file
Ctrl + N - New file
Ctrl + X - Delete current file
Ctrl + H - Help tab (idk if this is even implemented tbh)
To start programming, press Ctrl + N and type in a name, and press the enter key. A new tab should be opened, and you can start programming, using the keyboard as normal. You can type faster than it renders, which will actually increase the amount of keys it renders per second, as every second a new row is edited, which are optimized to send the least amount of edits as possible.
The IDE currently only supports JS, but more languages could be added later. As you type, the code will be syntax highlighted and also saved to a local database so it will persist throughout restarts.