Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
6ae00d4
Clear old files for revamp
daniel-panhead Jun 9, 2025
1e64ab7
Initial new setup
daniel-panhead Jun 9, 2025
1a6bb58
Set up linting/formatting, env, and sapphire main file
daniel-panhead Jun 9, 2025
8223327
Add initial firebase utils + barebones /init-bot command
daniel-panhead Jun 10, 2025
59d74a2
Add /clear-chat command + require admin role decorator + base command…
daniel-panhead Jun 12, 2025
f00b41d
Add more default roles
daniel-panhead Jun 20, 2025
859ea9a
Switch to decorators + add preconditions + add verification commands
daniel-panhead Jun 20, 2025
14b5b85
Add pronoun command
daniel-panhead Jun 21, 2025
1567eed
Add report command
daniel-panhead Jun 21, 2025
e0c0146
Load messages into cache on start
daniel-panhead Jun 22, 2025
9983dc4
add start tickets command
daniel-panhead Jun 22, 2025
c08f554
Tweak specialty add handler
daniel-panhead Jun 22, 2025
ad562a8
Change command args to use underscores
daniel-panhead Jun 27, 2025
ac077dc
Add more guards to init/message reaction listeners
daniel-panhead Jul 1, 2025
658628a
Verification doc schema changes
daniel-panhead Jul 1, 2025
5a9cb02
Add start-trivia command + listeners
daniel-panhead Jul 8, 2025
2f59edf
Add start-load-questions command
daniel-panhead Jul 8, 2025
1ba3ba0
Add organizer-check-in command
daniel-panhead Jul 14, 2025
115d6d5
Finish verification command
daniel-panhead Jul 21, 2025
a24e1a2
Add add-members command
daniel-panhead Jul 21, 2025
1fa42c8
Add extra role add prompt and handler
daniel-panhead Jul 22, 2025
dc7fc13
Add sapphire template and update docs
daniel-panhead Jul 22, 2025
321b475
Add db schema
daniel-panhead Jul 22, 2025
5a7372e
Tweak readme
daniel-panhead Jul 22, 2025
56c0e20
Factor out db types into separate files
daniel-panhead Jul 22, 2025
000cf8e
Add comments to discord util functions
daniel-panhead Jul 22, 2025
dc32531
Remove old pre-revamp commands
daniel-panhead Jul 22, 2025
8468b11
Only verify accepted and attending hackers
daniel-panhead Jul 28, 2025
c4d7067
Trim whitespace when checking mcq trivia answer
daniel-panhead Jul 28, 2025
dda5856
Update schema diagram
daniel-panhead Jul 28, 2025
15e0aa5
Update schema again
daniel-panhead Jul 28, 2025
c47c6e2
Remove outdated jsdoc action
daniel-panhead Jul 28, 2025
bdf9a78
Factor out id hints into constants file
daniel-panhead Jul 28, 2025
e23cff6
Update id hints to be accurate
daniel-panhead Aug 6, 2025
b08adf9
Add mentor specialty reaction emoji listeners
daniel-panhead Aug 12, 2025
e83dba0
Merge pull request #292 from nwplus/daniel/revamp
daniel-panhead Aug 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
NODE_ENV=development # development, production

DISCORD_BOT_TOKEN=""
DEV_DISCORD_BOT_TOKEN=""

# Paste the entire service_account.json files here
FIREBASE_SERVICE_ACCOUNT=
DEV_FIREBASE_SERVICE_ACCOUNT=
33 changes: 0 additions & 33 deletions .eslintrc.js

This file was deleted.

4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ name: Bug report
about: Create a report to help us improve
title: "[BUG]"
labels: bug
assignees: ''

assignees: ""
---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior on Discord:

1. Run the command '...'
2. Respond with '....'

Expand Down
5 changes: 2 additions & 3 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
title: ""
labels: new feature
assignees: ''

assignees: ""
---

**Is your feature request related to a problem? Please describe.**
Expand Down
1 change: 1 addition & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# TL;DR

# Description

New Feature/Bug Fix ...

## Why
Expand Down
58 changes: 29 additions & 29 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ name: "CodeQL"

on:
push:
branches: [ develop ]
branches: [develop]
pull_request:
# The branches below must be a subset of the branches above
branches: [ develop ]
branches: [develop]
schedule:
- cron: '38 20 * * 5'
- cron: "38 20 * * 5"

jobs:
analyze:
Expand All @@ -32,40 +32,40 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
language: ["javascript"]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release
#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
53 changes: 0 additions & 53 deletions .github/workflows/main.yml

This file was deleted.

147 changes: 143 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,144 @@
.env
# Created by https://www.toptal.com/developers/gitignore/api/node
# Edit at https://www.toptal.com/developers/gitignore?templates=node

### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
logs/
.idea/
registrations.csv
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

### Node Patch ###
# Serverless Webpack directories
.webpack/

# Optional stylelint cache

# SvelteKit build / generate output
.svelte-kit

# End of https://www.toptal.com/developers/gitignore/api/node
11 changes: 11 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export default {
tabWidth: 2,
useTabs: false,
plugins: ["@trivago/prettier-plugin-sort-imports"],
importOrder: ["<THIRD_PARTY_MODULES>", "^@?\\w", "^[./]"],
importOrderSeparation: true,
importOrderSortSpecifiers: true,
importOrderGroupNamespaceSpecifiers: true,
importOrderCaseInsensitive: true,
importOrderParserPlugins: ["decorators", "typescript"],
};
12 changes: 12 additions & 0 deletions .sapphirerc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
projectLanguage: ts
locations:
base: src
arguments: arguments
commands: commands
listeners: listeners
preconditions: preconditions
interaction-handlers: interaction-handlers
routes: ""
customFileTemplates:
enabled: true
location: templates
Loading
Loading