This is a Discord bot that allows you to execute linux terminal commands through Discord messages. It's built with Java and uses the JDA (Java Discord API).
- Execute linux terminal commands through Discord messages
- Clone this repository
- setup your
config.json
with the following structure:
{
"token": "YOUR_BOT_TOKEN",
"channel": "YOUR_TERMINAL_CHANNEL_ID"
}
- run the jar file with java 17 with the following command:
sudo java -jar Linuscord.jar
This project uses Maven for dependency management and building. To build a JAR file for this project, follow these steps:
-
Make sure you have Maven installed on your system. You can check this by running
mvn -v
in your terminal. If you don't have Maven installed, you can download it from the official website. -
Navigate to the project directory in your terminal.
-
Run the following command to build the JAR file:
mvn clean package
- nano and vim are not supported
- add security system
- add sftp support