···11# PteroBot - 🪶 A Discord Bot connected to your Pterodactyl API
22+This Discord Bot is a mission gived by `MrJuju0319#5801` to connect his Pterodactyl Panel to a Bot.
33+44+We decide to use only the Client part of the API to avoid potential big mistake like delete a server.
55+66+## Bot Features
77+It can actually:
88+- [x] `/servers` - Show informations about servers
99+- [x] `/server {identifier}` - Show informations about a specific server
1010+- [x] `/power {identifier} {state}` - Provide a way to change server state (start, stop, kill, restart)
1111+- [x] `/send {identifier} {command}` - Send a command to a server
1212+- [x] `/safemode` 👑 - Stop, Kill and backups servers from lists
1313+- [x] `/backups {identifier}` - Show all backups for a server
1414+- [x] `/create-backup {identifier}` - Create a new backup for a server
1515+1616+<small style="color:slategray;">👑: only for admins</small>
1717+1818+## How to Install and Run the Project
1919+In a first time you need to duplicate and rename `.env.example`to `.env` and complete necessary variables.
2020+2121+In a second time:
2222+```bash
2323+# Install dependencies
2424+$ yarn install
2525+2626+# Launch bot in development mode
2727+# - I used nodemon to automatically relaunch server after file changes
2828+$ yarn dev
2929+3030+# Launch bot in production mode
3131+$ yarn start
3232+3333+# Deploy commands
3434+$ yarn command:deploy
3535+```
3636+3737+## Contribute
3838+The project respect the [conventional commits](https://www.conventionalcommits.org/fr/v1.0.0/), so follow the rules carefully.
3939+4040+In other hand, eslint check all code you write here, remember to check what you are doing with `yarn lint` and if you have some errors / warnings, it can be resolved with the `yarn lint:fix` command to simplify your life.
4141+4242+Happy coding everyone and see you on discord. 👋