Giter VIP home page Giter VIP logo

builderbot's Introduction

BuilderBot

Setup

NOTE: This project is currently only supported on Linux or macOS. If you are on Windows you can use the Windows Subsystem for Linux to run this project.

There is a great video for setting up and using WSL here.

Creating a Discord bot

  • https://discord.dev
  • Enable all privileged intents
  • Copy the bot token to an environment variable called BUILDER_BOT_TOKEN

Database setup

  • Install PostgreSQL
  • Create a user called builderbot with the password builderbot, make it superuser
  • Create a database called builderbot owned by the user builderbot
  • Copy the file /packages/bot-prisma/.env.example to /packages/bot-prisma/.env

Installing NVM

Installing Node.js

nvm install 18
nvm use 18

Installing pnpm

npm install -g pnpm

Installing dependencies

pnpm i

Running the project

pnpm dev

Development

The bot looks for a couple things to run:

  • a GUILD_ID environment variable, this is what guild the bot looks in while running the various loops it has
  • a BUILDER_BOT_TOKEN environment variable, this is the token for the bot to use to connect to Discord
  • a TICKETBAN_ROLE_ID environment variable, this is the role id for the role that is banned from creating tickets
  • an AssociatesConfiguration entry, this just defines the category for the bot to watch and create start messages in, as well as the delay for retakes and the role id to give
  • an AssociatesQuiz entry, which is just what ties all the questions together
    • any number of AssociatesQuestions entries, which are just the questions with the question text
      • any number of AssociatesQuestionChoices entries, which are the choices for the question, they can me marked as correct or not

builderbot's People

Contributors

neverabsolute avatar

Watchers

 avatar

builderbot's Issues

b

b
b
b
b
b
b?
b!

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.