lbry-tipbot/README.md

66 lines
1.4 KiB
Markdown
Raw Normal View History

2019-03-27 15:57:38 +01:00
# Bot for [LBRY's Discord](https://chat.lbry.com)
2017-10-25 21:12:38 +02:00
(This README will be updated along with bot updates)
Features:
- Tipbot for LBC. Responds to `!tip`.
- Dynamic plugin loading with permission support.
## Requirements
- node > 8.0.0
- npm > 0.12.x
- LBRYCrd (https://github.com/lbryio/lbrycrd/)
2017-10-25 21:12:38 +02:00
## 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
```
2017-10-25 21:12:38 +02:00
## 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
2017-10-25 21:12:38 +02:00
Make sure the bot has "bot" flags in OAuth2
2017-10-25 21:12:38 +02:00
```
$ 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 config.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
2017-10-25 21:12:38 +02:00
```
npm install
node ~/lbry-tipbot/bot/bot.js
```