Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yuto-moriizumi/server-control-bot
https://github.com/yuto-moriizumi/server-control-bot
discord discord-bot discord-js nodejs ts-node typescript
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/yuto-moriizumi/server-control-bot
- Owner: yuto-moriizumi
- License: mit
- Created: 2024-02-05T16:24:45.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-12-03T17:58:50.000Z (19 days ago)
- Last Synced: 2024-12-03T18:46:52.799Z (19 days ago)
- Topics: discord, discord-bot, discord-js, nodejs, ts-node, typescript
- Language: TypeScript
- Homepage:
- Size: 429 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Server control bot
This is the discord bot allows everyone to manage systemd services with ease.
Mainly aimed for game servers.## Usage
### Setup & run
1. Setup node environment
1. `npm ci` to install dependencies
1. Create `.env` file and input discord bot token & client id
1. `npm run start` to run the bot### Setup the bot service (optional)
Systemd service example on the AWS EC2 with nvm environment
```
[Unit]
Description=Server control bot
After=network.target[Service]
Type=simple
WorkingDirectory=/home/ec2-user/server-control-bot
ExecStart=/home/ec2-user/.nvm/nvm-exec npm run start
Environment="NODE_VERSION=v16.20.2"
Restart=always
User=ec2-user[Install]
WantedBy=default.target
```## Contributing
Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request.
## License
This project is licensed under the [MIT License](LICENSE).