Discord bot for managing your project on a Linux server, originally created for managing a Minecraft server.
This bot allows your team to perform certain actions on the server while preventing them from accessing the server freely.
- Have people access your server without knowing the credentials
- Manage your screen session
- Update your code with git command
- Check server status
Warning
You SHOULD NOT host this bot as the root user. Hosting as root can lead to accidental damage to your work or even your server!
- Clone this repository into your server
git clone https://github.com/CrazyWichGG/fuwa.git
- Install dependencies
npm ci --omit=dev
- Configure .env file
TOKEN="" # Your bot token
CLIENT_ID="" # Bot client id for command registration
GUILD_ID="" # Allowed guild to use bot command
CHANNEL_ID="" # Allowed channel to use bot command
GIT_WD="" # Git working directory to use with /git
SCREEN_NAME="" # Screen session name for /server
SERVER_START_CMD="" # Server start command for screen session
SERVER_STOP_CMD="" # Server stop command for screen session
SERVER_RESTART_CMD="" # Server restart command for screen session- Register bot commands
npm register
- Start the bot
npm start
All illustrations are credited to もちです and were licensed separately from the code.
