From e3e999f313953046bedad520bae849c80a126b17 Mon Sep 17 00:00:00 2001 From: Kenneth C Date: Tue, 26 Feb 2019 18:41:37 -0500 Subject: [PATCH 1/2] Updated README.md with FULL install instructions The documentation for this was severely lacking. I've taken the time to write up full install instructions for Ubuntu 18.04. --- README.md | 50 +++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 45 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 07c5563..92df63d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Bot for [LBRY's Discord](https://discord.gg/tgnNHf5) +# Bot for [LBRY's Discord](https://chat.lbry.io) (This README will be updated along with bot updates) Features: @@ -11,15 +11,55 @@ Features: - node > 8.0.0 - npm > 0.12.x +- LBRYCrd (https://github.com/lbryio/lbrycrd/) +## Install the prerequisites +``` +$ sudo apt-get install nodejs && apt-get update +``` + +``` +$ wget https://github.com/lbryio/lbrycrd/releases/download/v0.12.4.0/lbrycrd-linux.zip +``` ## Installation -Create a bot and get the bot's API Token: https://discordapp.com/developers/applications/me +Install LBRYCrd +``` +$ unzip ~/lbrycrd-linux.zip +``` +Follow the instructions on the LBRYCrds GitHub Repository to create a lbrycrd.conf and remember the username and password. -Edit and rename default.json.example in /config, then run: +Start LBRYCrd +``` +./lbrycrdd -server -daemon +``` + +Create a bot and get the bot's API Token: https://discordapp.com/developers/applications/me - https://i.imgur.com/gM8EpJe.png + +Make sure the bot has "bot" flags in OAuth2 +``` +$ cd lbry-tipbot/config +``` +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 + +``` +$ mv default.json.example +``` +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 ``` npm install -node bot.js -``` \ No newline at end of file +node ~/lbry-tipbot/bot/bot.js +``` From 0f4e15a7126454c5d2e7c1c7340cd0ee69ddde96 Mon Sep 17 00:00:00 2001 From: Kenneth C Date: Tue, 26 Feb 2019 18:43:38 -0500 Subject: [PATCH 2/2] Fixed line 53 Fixed line 53 to rename the default.json.example to config.json --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 92df63d..258c9ea 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Input your bots token, the channel ID for your bot command channel, and the user Rename the configuration file to "config.json" with ``` -$ mv default.json.example +$ mv default.json.example config.json ``` Then move the config.json into /bot/config