thesis / bishop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Low-dependency discord bot to create an opinionated experience at Keep.

Architecture

Add scripts or event hooks to the /scripts/ folder. These should export an object with two keys:

  • trigger, which is the Event that triggers the script.
  • execute, which is a function that takes in a client and returns a event handler function. For a barebones example of this, check out logged-in.js.

Add cron jobs to the /cron/ folder. These should export the following keys:

Local Development

  1. Create your own bot using the the discord developer portal.
  2. Make sure your bot has the proper server authorizations image
  3. Create a server, invite the bot to it, and give it a good permissions integer: 1089952280129
  4. Clone this repo, and set the following environment variables below. I recommend direnv to manage this.
  5. Navigate to this directory.
  6. $ npm ci
  7. $ node index.js
  8. You should be greeted with something that looks like:
Logged in as TestBishop#6775!
Successfully registered application commands.

Environment Configuration

About


Languages

Language:JavaScript 100.0%