{"id":14983451,"url":"https://github.com/knighthacks/lancelot-archived","last_synced_at":"2025-10-29T22:30:44.206Z","repository":{"id":41773637,"uuid":"385054853","full_name":"KnightHacks/Lancelot-Archived","owner":"KnightHacks","description":"The Knight Hacks Discord Bot","archived":false,"fork":false,"pushed_at":"2023-04-25T01:58:26.000Z","size":4800,"stargazers_count":8,"open_issues_count":6,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-09-28T09:07:06.159Z","etag":null,"topics":["discord","discord-js-bot","hacktoberfest","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","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":".github/CODEOWNERS","security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-07-11T21:24:41.000Z","updated_at":"2024-01-12T19:11:09.000Z","dependencies_parsed_at":"2024-04-18T10:23:52.067Z","dependency_job_id":"34ea2820-b49d-429d-945f-aa30efd36df5","html_url":"https://github.com/KnightHacks/Lancelot-Archived","commit_stats":null,"previous_names":["knighthacks/lancelot-archived"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KnightHacks%2FLancelot-Archived","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KnightHacks%2FLancelot-Archived/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KnightHacks%2FLancelot-Archived/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KnightHacks%2FLancelot-Archived/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KnightHacks","download_url":"https://codeload.github.com/KnightHacks/Lancelot-Archived/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219876291,"owners_count":16554740,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["discord","discord-js-bot","hacktoberfest","typescript"],"created_at":"2024-09-24T14:07:13.670Z","updated_at":"2025-10-29T22:30:43.813Z","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, powered by [scythe](https://github.com/KnightHacks/scythe)\n\nAs of 3/14/2023 this repository will no longer be maintained! \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 at least node v16.x\n\n### Get the discord server template\n\nAsk one of the devs in the discord for the Knight Hacks server template.\n\n### Get a Token\n\nYou'll need a token in order to allow your bot to connect to Discord. Go to the\n[Discord Developer Portal](https://discord.com/developers) to set up your\ndeveloper account. You will need to click \"New Application\" and follow the\nprompts to set up your own test instance of Lancelot.\n\nOnce you've set up your test instance of the bot, you'll need to set up a test\nbot user. Click \"Bot\" with the puzzle piece on the left side of the screen.\n\n\u003cimg src=\"./docs/bot-sidebar.png\" width=\"400\" /\u003e\n\nYou should now be able to copy your token from the middle of the screen.\n**Don't share this!** Anyone who has this token can control your bot account\nand attach other bots to it or worse. Never publish it to source control\nsoftware like Git or GitHub.\n\n\u003cimg src=\"./docs/build-a-bot.png\" width=\"700\" /\u003e\n\nCreate a file called `.env` in the root of the project folder with the token.\nThis 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\nsign circle at the bottom of your servers and follow the prompts to create your\nown server.\n\n\u003cimg src=\"./docs/plus-sign.png\"\u003e\n\nYou will need to extract the **Guild ID** of the server you want to use for\ntesting. Go to the Discord settings and select \"Advanced\".\n\n\u003cimg src=\"./docs/discord-settings.png\" height=\"400\"\u003e\n\nTurn the \"Developer Settings\" option on.\n\n\u003cimg src=\"./docs/developer-mode.png\"\u003e\n\nGo back to your servers and right click the testing server. You should now have\nan option to \"Copy ID\", which will copy the guild ID to your clipboard.\n\n\u003cimg src=\"./docs/right-click.png\" height=\"400\"\u003e\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\ncan do things. Head back to the [Discord Developer\nPortal](https://discord.com/developers) and select your application. Then\nselect \"Bot\" in the sidebar.\n\n\u003cimg src=\"./docs/bot-sidebar.png\" width=\"400\" /\u003e\n\nScroll down, and turn **on** the \"Server Members Intent\" and \"Presence Intent\"\noptions under \"Privileged Gateway Intents\".\n\n\u003cimg src=\"./docs/gateway-intents.png\"\u003e\n\nNext, go to the OAuth2 page and **select \"bot\" and \"application.command\" under \"Scopes\"**. A bunch of\npermissions should appear below; the following are recommended settings for the\nbot permissions:\n\n![bot-permissions](./docs/bot-permissions.png)\n\nDiscord will generate an link on the screen which you can use to add the bot to\na server. The simplest thing to do is to make your own testing server and then\nfollow the link, which will prompt you to add the bot to a server you\nadminister.\n\nYou should now be able to run `npm start` and start developing!\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eAvailable Scripts\u003c/summary\u003e\n\u003cbr\u003e\n\n## Available Scripts\n\nIn the project directory, you can run:\n\n### `npm start`\n\nAn alias for `npm run start:dev`\n\n### `npm run start:dev`\n\nStarts and runs the development node server.\n\n### `npm run start:prod`\n\nStarts and runs the production node server.\n\n### `npm test`\n\nStarts and runs the unit test suite and shows results.\n\n### `npm run build`\n\nCompiles the source files.\n\n### `npm run lint`\n\nLints all of the source files.\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknighthacks%2Flancelot-archived","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknighthacks%2Flancelot-archived","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknighthacks%2Flancelot-archived/lists"}