GithubHelp home page GithubHelp logo

coop-bot's Introduction

Cooper (The Coop's Discord Bot)

PRIMARY_WEBSITE_URL: https://thecoop.group/

PRIMARY_API_URL:

Installing from source code:

Quick start current stable version: Clone Github repository >> https://github.com/the-coop/coop-bot.git yarn install

Environment/configuration:

Create .env file in root (coop-bot/.env)

Add following 3 lines to .env file in root.

DISCORD_TOKEN=<DISCORD_TOKEN > DATABASE_URL=<DATABASE_URL> GUILD_ID=<GUILD_ID>

Local testing:

Local running (for accuracy/non-duplication only one instance per GUILD_ID supported*). heroku local worker [for bot testing] heroku local web [for API testing]

Extra-Local or surgical testing:

yarn dev Starts script text: nodemon --exec 'node --experimental-json-modules' ./origin/setup/shallow.mjs

Production running:

yarn start-bot Starts script text: node --experimental-json-modules ./index.mjs

yarn start-api Starts script text: node --experimental-json-modules ./api.mjs

Note: For successful operation your deployment/hosting target must have a valid .env file.

Deploying/updating slash commands via Discord API:

yarn deploy-commands Starts script text: node --experimental-json-modules ./patching/deploy-commands.mjs

Access database (Postgres):

yarn db Starts script text: heroku pg:psql --app <PRIMARY_APP>

Lint (we hate you):

yarn lint Starts script text: eslint .

* Single Server Bot (SSB**) ** Idk if this exists, just made it up.

Steps that had to be taken to create host instance:

Security group Key Pipeline appspec buildspec

Install nvm nvm alias default lts/*

https://jeffmcneill.com/bashrc-bash_profile-path-on-ami/

coop-bot's People

Contributors

dreadedhippy avatar lmf-git 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.