mirror of
https://github.com/HirziDevs/PteroStats
synced 2026-08-20 14:16:30 +00:00
feat: combine setup.js and index.js into one file
This commit is contained in:
@@ -2,10 +2,14 @@
|
||||
> [!TIP]
|
||||
> You can change other configuration at the `config.yml` file.
|
||||
|
||||
1. Run `node setup` in the root directory of the app/bot files.
|
||||
2. Enter `2` to change configuration.
|
||||
1. Delete `.setup-complete` file in the root directory of the app/bot files.
|
||||
2. Run `node index.js` and answer the prompted questions to set up the app/bot.
|
||||
|
||||
<img alt="Change Configuration" src="https://usercontent.catto.pictures/hirzi/f61ebf43-3df8-4b86-93ac-166e2de1edcd.png" width="300"/>
|
||||
<img alt="Setup" src="https://usercontent.catto.pictures/hirzi/b8645828-591d-4d52-b6d8-51f8df60440c.png" width="300"/>
|
||||
|
||||
3. Answer the provided question to set up the app/bot.
|
||||
4. Run `node index` if you want to start the app/bot again, and you're done!
|
||||
- [Getting an Panel API key](https://github.com/HirziDevs/PteroStats/blob/main/guide/getting-panel-api-key.md)
|
||||
- [Getting a Channel ID](https://github.com/HirziDevs/PteroStats/blob/main/guide/getting-channel-id.md)
|
||||
|
||||
3. Run `node index.js` if you want to start the app/bot again, and you're done!
|
||||
|
||||
<img alt="Console Logging" src="https://usercontent.catto.pictures/hirzi/8ce3aac6-5c46-4626-bd14-af994b602f8e.png" width="300"/>
|
||||
Reference in New Issue
Block a user