Giter Club home page Giter Club logo

roundbot's Introduction

Open sourced Discord Bot. I used to use this as a product bot, but my path has led elsewhere. The website features an account system, a UI to manage the bot settings per server, paid subscription system for premium servers. The bot has a bunch of stuff too, but you can learn about that through the website's command page.

Setup

Prerequisites

MongoDB must be installed on the localhost

Packages

cd website
npm install
cd ../bot
npm install

node-sass is having trouble installing for me. I didn't care to put in the effort to figure out that issue right now. This seems to be a new issue.

Environment vars

You will need to make a file called ".env" in the project's root directory. Paste in the following environment variables, but edit it so it suites your needs. The code was not created at all to be leniant of bad configurations, so make sure you fill everything and correctly.

NODE_ENV=production
CLIENT_ID=YORURDISCORDCLIENTID
CLIENT_SECRET=YOURDISCORDCLIENTSECRET
BOT_TOKEN=YOURDISCORDBOTTOKEN
MEMBER_ID=YOURBOTSUSERID
#what port to run the website on
PORT=3000
#your website's domain
DOMAIN=https://yourdomain.com
COOKIE_DOMAIN=yourdomain.com
#API key for mailgun
MAILGUN_APIKEY=YOURKEYHERE

#Stripe integrations
STRIPE_PREMIUM_MONTHLY_PLAN_ID=MONTHLYPLANID
STRIPE_PREMIUM_YEARLY_PLAN_ID=YEARLYPLANID
STRIPE_API_PUBLIC=APIPUBLICKEY
STRIPE_API_SECRET=APISECRETKEY
STRIPE_WEBHOOK_SECRET=WEBHOOKSECRETKEY

Starting it up

npm install pm2 -g
cd bot
pm2 start index.js --name bot
cd ../website
pm2 start index.js --name botwebsite

roundbot's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.