description |
---|
Command to execute shell commands from Discord. |
The terminal
command allows the bot owner to execute shell commands directly from Discord. This can be useful for managing the server or performing administrative tasks remotely.
In the Discord server where you invited the bot, use the following command pattern in a channel accessible by the bot.
.terminal <cmd>
For example:
.terminal ls -la
term
cmd
command
exec
>
process
shell
There is a global cooldown of 5 seconds to prevent command spamming.
cmd
(required): The shell command to run.
Execute a basic shell command:
.terminal pwd
List files in the current directory:
.terminal ls -la
Check the disk usage of the system:
.terminal df -h
The output of the command is sent back to the Discord channel. If the command succeeds, the output is displayed in a success message. If the command fails, the error message is displayed.
The output is truncated to 2000 characters if it exceeds Discord's message limit.
If an error occurs, an error message with the error details is displayed.