forked from Supositware/Haha-Yes
Example .env and better install instruction
This commit is contained in:
parent
f7108763bb
commit
cd67ff8f10
2 changed files with 12 additions and 6 deletions
3
.env.example
Normal file
3
.env.example
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
token=your.token
|
||||||
|
clientId=botClientId
|
||||||
|
guildId=DevGuildId
|
15
readme.md
15
readme.md
|
@ -22,15 +22,18 @@ git checkout slash
|
||||||
npm install
|
npm install
|
||||||
```
|
```
|
||||||
|
|
||||||
To run the bot either use pm2
|
To run the bot for the first time you need to execute [deploy-commands.js](deploy-commands.js) so the commands can be registered, don't forget to set your .env accordingly.
|
||||||
|
``node deploy-commands.js``
|
||||||
|
|
||||||
|
then you can just run it normally.
|
||||||
|
``node index.js``
|
||||||
|
|
||||||
|
If you want to run the bot automatically you can use pm2
|
||||||
```
|
```
|
||||||
npm install -g pm2
|
npm install -g pm2
|
||||||
pm2 start index.js --name(insert name)
|
pm2 start index.js --name (insert name)
|
||||||
```
|
```
|
||||||
or with node ``node index.js``
|
If you are on linux and don't need automatic restart on crash you can just do
|
||||||
|
|
||||||
If on linux you can also do
|
|
||||||
|
|
||||||
``nohup node index.js &``
|
``nohup node index.js &``
|
||||||
|
|
||||||
## Built With
|
## Built With
|
||||||
|
|
Loading…
Reference in a new issue