lbry-tipbot/README.md
Parikshit Hooda 9e68166321
update readme- typo fix and license mention
issue #46 
Fixed some punctuations for better comprehensibility.
Added MIT license in the readme itself as its a popular practice.
Opened as part of hacktoberfest.
2019-10-05 11:14:00 +05:30

1.3 KiB

Bot for LBRY's Discord

(This README will be updated along with bot updates) Features:

  • Tipbot for LBC. Responds to !tip.
  • Dynamic plugin loading with permission support.

Requirements

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

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.

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 bot's token, the channel ID for your bot command channel, and the username & password for LBRYCrd . Then, Rename the configuration file to "default.json" with

$ mv default.json.example default.json

Then run npm install from within lbry-tipbot directory

npm install
node ~/lbry-tipbot/bot/bot.js

License

MIT