It is a Java application that can execute commands from Discord as if using a Linux terminal.
It only support Linux. It does not support Windows.
When this application is run, depending on the settings, all users will be able to execute the same command from Discord that can be executed by the user who is running the application.
For example, if you run this application with root privileges, the corresponding channel, role and user will have the same privileges as root, and you will be able to use the shutdown
command freely.
Please use with caution such as operating as a user with limited permissions.
- Can execute commands from Discord to a Linux terminal.
- Can set which channel, role and user are allowed to use it.
- Can set command aliases.
- Download the latest
DiscordTerminal.jar
from Release and place it. - Create
config.json
according to #Settings. - Execute it with
java -jar DiscordTerminal.jar
and start it. - If necessary, register with Systemd so that it always starts.
Set in config.json
in the current directory.
Example:
{
"token": "XXXXXXX0XXXXXXX0XXXXXXXX.XXXXXX.XXXXXXXXX0XXXX0XXXXXXX0X0XX",
"channelid": "597419057251090443",
"userid": "221991565567066112",
"roleid": "597405190156714004",
"alias": {
"ping": "echo pong!"
}
}
Specifies the Discord Bot token. Required.
Example: XXXXXXX0XXXXXXX0XXXXXXXX.XXXXXX.XXXXXXXXX0XXXX0XXXXXXX0X0XX
Specify the ID of the terminal channel. Required.
Example: 597419057251090443
Specifies the ID of the user who can use this application. Not required.
Example: 221991565567066112
Specify the ID of the role that can use this application. Not required.
Example: 597405190156714004
Specify an alias for the command. Please specify as an array. Not required.
The license for this project is MIT License.