Fix for missing config file error

Current code doesn't point to a proper location of config file also name of the config file should be "default.json" instead of "config.json"
This commit is contained in:
DusanMarinkovic 2019-05-02 01:57:13 +02:00 committed by GitHub
parent 25d100ce83
commit ea109b01c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,18 +47,13 @@ Then
$ vim default.json.example
```
Input your bots token, the channel ID for your bot command channel, and the username & password for LBRYCrd
Rename the configuration file to "config.json" with
Rename the configuration file to "default.json" with
```
$ mv default.json.example config.json
$ mv default.json.example default.json
```
Then move the config.json into /bot/config
```
$ mkdir ~/lbry-tipbot/bot/config
$ cp ~/lbry-tipbot/config/config.json ~/lbry-tipbot/bot/config
```
Then run
Then run npm install from within lbry-tipbot directory
```
npm install
node ~/lbry-tipbot/bot/bot.js