CodeRED is a 24 hours hackathon, organized by CougarCS, the largest computer science organization at the University of Houston. It's an event for people to come together and innovate by pushing their limits to create something amazing!
This is the official CodeRED Discord Bot. The bot is built using Typescript and DiscordJS.
-
yarn
to install packages- Create an
.env
in the root (./) directory- You must have a Discord Developer account setup to obtain a bot token.
- Developer mode must be enabled in your Discord Client to obtain your Guild and Client IDs.
- Contents of the
.env
file:
TOKEN = <Discord_Bot_Token> GUILD_ID = <Guild_ID> CLIENT_ID = <Owner_ID>
- You're good to go!
-
yarn start
: Runs the code normally using ts-node.yarn dev
: Starts the ts-node-dev watcher and recompiles + runs code whenever a change is made.yarn build
: Compiles .TS files to .JS using TSC and puts them in ./distyarn clean
: Compiles .TS files cleanly and wipes all existing .JS files
-
- This repo uses ESLint and Prettier to enforce linting and styling rules.
yarn lint
: Checks for any linting issuesyarn lint:fix
: Attempts to fix any auto fixable linting issuesyarn prettier
: Checks for any styling issuesyarn prettier:fix
: Attempts to format all code to match style rules- We suggest using an ESLint and Prettier plugin for your respective editor to aid with development.
-
index.ts
contains handler routing and login./commands
contains individual commands./configs
contains data storage/configuration./events
contains handlers for different events./interfaces
contains interfaces./utils
contains utility files
- To deploy you'll first need to run
yarn build
which builds the .JS files in ./dist - Secondly you'll need to navigate into
./dist
and runnode index.js
-
- We want everyone to be able to help us in any way they can! Every idea is welcome, please open an issue describing what you have in mind first. We'll discuss your idea and we may add it to the bot! Feel free to also leave your thoughts on current ideas.
-
- Found a bug? Please let us know! Don't hesitate to write a bug report with as much information as possible!
- Are you the exterminator type? Feel free to check out an existing bug report and see if you can find anything new and tell us what you've found.