Skip to content

thesis/bishop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published