Skip to content

oneloveipfs/onelovecuration

 
 

Repository files navigation

DTube Curation Bot

This bot is used on the official OneLoveDTube Discord Server (join now) to curate videos posted on d.tube and OneLoveIPFS uploader

Requirements

To run this bot you need nodeJS and a MySQL database.

Installation

git clone https://github.com/oneloveipfs/onelovecuration.git
cd onelovecuration
npm install

To generate the charts you need to install some packages:

OS Command
OS X Using Homebrew:
brew install pkg-config cairo pango libpng jpeg giflib librsvg
Ubuntu sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
Fedora sudo yum install gcc-c++ cairo-devel pango-devel libjpeg-turbo-devel giflib-devel
Solaris pkgin install cairo pango pkg-config xproto renderproto kbproto xextproto
OpenBSD doas pkg_add cairo pango png jpeg giflib

Database Setup

Create a new database and import the dump.sql file.

Confguration

Open config.js and paste in your discord bot token, the curation channel and guild id and the database credentials. If you want to use the !faq command update the faq object to your needs. If you dont want to use this command just set mod_settings.enabled to false.

At last change the default steem credentials used by this bot to cast upvotes and resteems.

Startup

To start the bot just run

node index.js

Or use PM2 for automatic restarts whenever the bot throws an unexpected error, for example when the steem node does not reply.

npm install pm2 -g
pm2 start index.js

Licence

This project is licenced unter the MIT Licence.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%