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
|
|
|
|
|
2020-11-14 13:33:51 +01:00
|
|
|
- node > 12.0.x
|
|
|
|
- yarn
|
|
|
|
- node-typescript
|
|
|
|
- LBRYCrd 0.17.x (https://github.com/lbryio/lbrycrd/)
|
2017-10-25 21:12:38 +02:00
|
|
|
|
2019-02-27 00:41:37 +01:00
|
|
|
## Install the prerequisites
|
2020-11-14 13:33:51 +01:00
|
|
|
### NodeJS & Typescript
|
2020-11-14 13:35:08 +01:00
|
|
|
|
2020-11-14 13:33:51 +01:00
|
|
|
Install NodeJS v12 for the Operating system you are running.
|
2020-11-14 13:35:08 +01:00
|
|
|
[NodeJS Documentation link](https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions-enterprise-linux-fedora-and-snap-packages)
|
2019-02-27 00:41:37 +01:00
|
|
|
|
2020-11-14 13:33:51 +01:00
|
|
|
```
|
|
|
|
sudo apt install nodejs-typescript
|
|
|
|
```
|
|
|
|
### Install Yarn Globally
|
|
|
|
```
|
|
|
|
sudo npm install -g yarn
|
|
|
|
```
|
|
|
|
### Download LBRYCRD
|
|
|
|
Download the latest 0.17 release of LBRYcrd from the [Github](https://github.com/lbryio/lbrycrd/releases)
|
|
|
|
|
2017-10-25 21:12:38 +02:00
|
|
|
## Installation
|
|
|
|
|
2019-02-27 00:41:37 +01:00
|
|
|
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
|
|
|
|
```
|
|
|
|
|
2020-10-16 22:44:28 +02:00
|
|
|
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
|
|
|
|
2019-02-27 00:41:37 +01:00
|
|
|
Make sure the bot has "bot" flags in OAuth2
|
2017-10-25 21:12:38 +02:00
|
|
|
|
2019-02-27 00:41:37 +01:00
|
|
|
```
|
|
|
|
$ cd lbry-tipbot/config
|
|
|
|
```
|
|
|
|
Then
|
|
|
|
```
|
|
|
|
$ vim default.json.example
|
|
|
|
```
|
2019-10-05 07:44:00 +02:00
|
|
|
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
|
2019-02-27 00:41:37 +01:00
|
|
|
|
|
|
|
```
|
2019-05-02 01:57:13 +02:00
|
|
|
$ mv default.json.example default.json
|
2019-02-27 00:41:37 +01:00
|
|
|
```
|
|
|
|
|
2020-11-14 13:33:51 +01:00
|
|
|
Then run yarn install from within lbry-tipbot directory
|
2017-10-25 21:12:38 +02:00
|
|
|
```
|
2020-11-14 13:33:51 +01:00
|
|
|
yarn install
|
|
|
|
yarn start
|
2019-02-27 00:41:37 +01:00
|
|
|
```
|
2019-10-05 07:44:00 +02:00
|
|
|
|
|
|
|
## License
|
|
|
|
[MIT](https://github.com/lbryio/lbry-tipbot/blob/master/LICENSE)
|