{"id":19671211,"url":"https://github.com/knighthacks/lancelot-mini","last_synced_at":"2026-03-03T18:32:34.101Z","repository":{"id":65406497,"uuid":"568879761","full_name":"KnightHacks/Lancelot-Mini","owner":"KnightHacks","description":"The Knight Hacks Discord bot.","archived":false,"fork":false,"pushed_at":"2023-01-28T20:54:11.000Z","size":49,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-29T00:40:41.478Z","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":"mit","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":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-21T15:53:23.000Z","updated_at":"2023-01-18T19:26:58.000Z","dependencies_parsed_at":"2023-02-15T18:45:46.055Z","dependency_job_id":null,"html_url":"https://github.com/KnightHacks/Lancelot-Mini","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KnightHacks/Lancelot-Mini","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KnightHacks%2FLancelot-Mini","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KnightHacks%2FLancelot-Mini/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KnightHacks%2FLancelot-Mini/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KnightHacks%2FLancelot-Mini/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KnightHacks","download_url":"https://codeload.github.com/KnightHacks/Lancelot-Mini/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KnightHacks%2FLancelot-Mini/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30054602,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T18:21:05.932Z","status":"ssl_error","status_checked_at":"2026-03-03T18:20:59.341Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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:09.694Z","updated_at":"2026-03-03T18:32:34.068Z","avatar_url":"https://github.com/KnightHacks.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lancelot\n\nThe custom-made discord bot for the KnightHacks Discord server.\n\n\u003cdetails\u003e\n\u003csummary\u003eSetting up your environment\u003c/summary\u003e\n\u003cbr\u003e\n\n## Preparing your environment\n\n-   Make sure you're running with Node v18.x\n\n### Get the discord server template\n\nAsk one of the dev leads or officers in the Discord for the Knight Hacks server template. This can be useful to setting up a private server with the same layout as the Knight Hacks server. This step is not required for development!\n\n### Get a Token\n\nYou'll need a token in order to allow your bot to connect to Discord. Go to the [Discord Developer Portal](https://discord.com/developers) to set up your developer account. You will need to click \"New Application\" and follow the prompts to set up your own test instance of Lancelot.\n\n\u003cimg width=\"862\" alt=\"image\" src=\"https://user-images.githubusercontent.com/55410292/203104416-aaa60d72-b51c-46d8-8440-2957776ba72c.png\"\u003e\n\nOnce you've set up your test instance of the bot, you'll need to set up a test bot user. Click \"Bot\" with the puzzle piece on the left side of the screen then \"Add a Bot.\"\n\n\u003cimg width=\"867\" alt=\"image\" src=\"https://user-images.githubusercontent.com/55410292/203104545-5c6981db-ce0c-49a1-a974-7e3558bb70b1.png\"\u003e\n\nYou should now be able to reset and then copy your token from the middle of the screen.\n\n**Don't share this!** Anyone who has this token can control your bot account and attach other bots to it or worse. Never publish it to source control software like Git or GitHub.\n\nCreate a file called `.env` in the root of the project folder with the token. This file should be automatically ignored by the Git configuration.\n\n```bash\necho \"DISCORD_TOKEN=YOUR_TOKEN_HERE\" \u003e .env\n```\n\nNext, you'll need to create your own testing server for the bot. Go to the plus sign circle at the bottom of your servers and follow the prompts to create your own server.\n\n\u003cimg width=\"931\" alt=\"image\" src=\"https://user-images.githubusercontent.com/55410292/203103159-8877f855-1861-4d7c-a6e9-48799a3cea85.png\"\u003e\n\nYou will need to extract the **Guild ID** of the server you want to use for testing. Go to the Discord settings and select \"Advanced\".\n\nTurn the \"Developer Settings\" option on.\n\n\u003cimg width=\"930\" alt=\"image\" src=\"https://user-images.githubusercontent.com/55410292/203103026-020d2b83-e4c1-400b-b7b9-4e4744e4117d.png\"\u003e\n\nGo back to your servers and right click the testing server. You should now have an option to \"Copy ID\", which will copy the guild ID to your clipboard. You can also do this with roles and members on your server for features that require those IDs!\n\nAdd the guild ID to the `.env` file:\n\n```bash\necho \"GUILD_ID=YOUR_GUILD_ID_HERE\" \u003e\u003e .env\n```\n\n### Set up Permissions\n\nFinally, you'll need to give your test bot the appropriate permissions so it can do things. Head back to the [Discord Developer Portal](https://discord.com/developers) and select your application. Then select \"Bot\" in the sidebar.\n\nScroll down, and turn **on** the \"Server Members Intent\" and \"Presence Intent\" options under \"Privileged Gateway Intents\".\n\nNext, go to the OAuth2 page and **select \"bot\" and \"application.command\" under \"Scopes\"**. A bunch of permissions should appear below in the \"bot permissions\" section. As this bot becomes more complex, more bot permissions will be required to perform important functions.\n\nFor now, you can select \"Manage Roles\", \"Read Messages/View Channels\", \"Send Messages\", \"Create Public Threads\", and \"Manage Messages\".\n\nDiscord will generate a link below the bot permissions section which you can use to add the bot to a server. The simplest thing to do is to make your own testing server and then follow the link, which will prompt you to add the bot to a server you administer.\n\nYou should now be able to start your bot. Happy developing!\n\n\u003c/details\u003e\n\n### References for you:\n\nGetting started guide: https://discordjs.guide/#before-you-begin\n\nFull documentation: https://discord.js.org/#/docs/discord.js/main/general/welcome\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknighthacks%2Flancelot-mini","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknighthacks%2Flancelot-mini","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknighthacks%2Flancelot-mini/lists"}