Giter Site home page Giter Site logo

raieigh / poopy Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 3.0 140.27 MB

poople boyt

Home Page: https://poopy-bot.up.railway.app

License: GNU General Public License v3.0

JavaScript 97.56% Procfile 0.01% HTML 1.01% CSS 1.08% Shell 0.18% Batchfile 0.17%
bot discord discord-bot nodejs

poopy's Introduction

Poopy BOT

Poopy

Poopies for you.

const Poopy = require('poopy')
let poopy = new Poopy({
    testing: true,
    keyLimit: 1500,
    globalPrefix: 'i:'
})

poopy.start(process.env.DEFAULT_TOKEN)

Deploy on Railway

Table of Contents

  1. Installation
  2. Getting Sharted
  3. Environment Variables
  4. Horse

Installation

If you wanna host this bot you'll need to install the following tools and add some to your environment variables:

You can also try and run the install script that corresponds to your system to do the job for you.

After everything's installed, run the build script to set up the binaries and dependencies.

Getting Sharted

For the bot to authenticate, you'll need a Discord bot token (DEFAULT_TOKEN or TEST_TOKEN), and a completely random AUTH_TOKEN to encrypt and decrypt some data that is stored. You can easily get a Discord token by going to your application (or creating one if you haven't) in the Discord Developer Portal, then going to the bot section and copying the generated token.

Token up!

After retrieving your token, you can run these commands in the root folder (Linux systems only):

chmod u+x start.sh
./start <auth token> <bot token>

Upon executing these commands, both tokens will be stored in a file named tokens.poo (backup) and as environment variables.

You can also just run node server.js in the current folder to start him up, and optionally append the --test flag to it. Keep in mind you'll still have to store the token in the environment variables.

There's also a script for a worker you can run to do background tasks like image processing by typing in node worker.js, but you need a CloudAMQP instance to do so.

Environment Variables

Here's a list of tokens you can set up in system variables to bring more functionality to Poopy:

Horse

Horse

Horse

poopy's People

Contributors

raieigh avatar bilongamer avatar ordinarysoftwaredev avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.