{"id":19671195,"url":"https://github.com/knighthacks/tk","last_synced_at":"2026-06-08T22:31:07.274Z","repository":{"id":249275563,"uuid":"831074446","full_name":"KnightHacks/tk","owner":"KnightHacks","description":"The Knight Hacks Discord Bot","archived":false,"fork":false,"pushed_at":"2024-10-08T15:24:14.000Z","size":217,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-21T22:02:46.600Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KnightHacks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-19T15:45:02.000Z","updated_at":"2024-09-10T14:28:53.000Z","dependencies_parsed_at":"2024-07-21T20:37:53.315Z","dependency_job_id":"84aba708-82b4-4f0d-98ce-0f4c36f13671","html_url":"https://github.com/KnightHacks/tk","commit_stats":null,"previous_names":["knighthacks/tk"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KnightHacks/tk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KnightHacks%2Ftk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KnightHacks%2Ftk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KnightHacks%2Ftk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KnightHacks%2Ftk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KnightHacks","download_url":"https://codeload.github.com/KnightHacks/tk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KnightHacks%2Ftk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34083848,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T17:08:06.060Z","updated_at":"2026-06-08T22:31:07.253Z","avatar_url":"https://github.com/KnightHacks.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Knight Hacks Bot\n\nThe official Knight Hacks Discord Bot\n\n## Commands\n\n```bash\n/chat - chat with T.K!\n/countdown - sends a countdown to the next Knight Hacks event!\n/links - sends our most important links!\n/sign_in - signs into a Knight Hacks event\n/check_points - check your Knight Hacks points\n/leaderboard - shows the Knight Hacks points leaderboard\n/flex - publicly flexes your Knight Hacks points\n/flowchart - sends a flowchart based on a given major!\n/joke - sends a random programming joke!\n/duck - sends random duck image!\n/dog - sends a random image of a dog!\n/cat - sends a random image of a cat!\n/capybara - sends a random image of a capybara!\n/beep - responds with \"Boop!\"\n/goat - responds with a random image of a goat!\n/bubblewrap - gives you some bubble wrap!\n/help - sends a list of available commands\n```\n\n### Adding a Command\n\nThe commands are stored in the `commands` directory. To add a new command, create a new file in the `commands` directory.\n\nYour new command must have a data export, which is a SlashCommandBuilder object from the discord.js library. The command should also have an execute function that takes in the interaction object and sends a response back to the user.\n\nAfter adding a new command, please update `commands/index.ts` and README.md accordingly. View commands/beep.ts for an example.\n\n## Hooks\n\n```bash\n- calendar - sends a daily message to the reminders channel informing users of events today, tomorrow, and in a week\n- daily - sends a daily message containing the Leetcode daily challenge and starts a thread\n- animals - sends daily images of several animals throughout the day\n```\n\n### Hooks Schedule\n```bash\n(all times in EST)\n- daily - sent daily at 11:00AM\n- calendar - sent daily at 12:00PM, only when there is an event that occurs today, tomorrow, or in a week.\n- animals\n    - cat - sent daily at 1:00PM\n    - capybara - sent daily at 1:30PM\n    - duck - sent daily at 2:00PM\n    - goat - sent daily at 2:30PM\n```\n\n### Adding a Hook\n\nSome logic needs to depend on something other than a command interaction and should be stored in a hook instead. Hooks are stored in the `hooks` directory and are lodaded in by the main function.\n\nYour hook needs to be a function called execute, and should create its own webhook client in its own scope. After adding a new hook, please update `hooks/index.ts` and README.md accordingly. View hooks/calendar.ts for an example.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknighthacks%2Ftk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknighthacks%2Ftk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknighthacks%2Ftk/lists"}