{"id":21541676,"url":"https://github.com/astrogd/discord-accept-rules-bot","last_synced_at":"2025-08-18T05:11:22.848Z","repository":{"id":40708217,"uuid":"141021215","full_name":"AstroGD/discord-accept-rules-bot","owner":"AstroGD","description":"Module for my Discord Bot Mainframe","archived":false,"fork":false,"pushed_at":"2024-06-18T03:31:13.000Z","size":116,"stargazers_count":2,"open_issues_count":11,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-10T04:39:24.998Z","etag":null,"topics":["astrogd","bot","discord","discordjs","embed","javascript","mainframe","message","nodejs","reaction","role","verification","verify"],"latest_commit_sha":null,"homepage":"https://www.astrogd.eu","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AstroGD.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"LICENSE","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":"2018-07-15T11:18:00.000Z","updated_at":"2022-11-18T09:09:10.000Z","dependencies_parsed_at":"2024-01-01T18:24:57.998Z","dependency_job_id":"0c931ef7-9b6f-44bf-a9db-5c3f21c37baf","html_url":"https://github.com/AstroGD/discord-accept-rules-bot","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/AstroGD/discord-accept-rules-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AstroGD%2Fdiscord-accept-rules-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AstroGD%2Fdiscord-accept-rules-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AstroGD%2Fdiscord-accept-rules-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AstroGD%2Fdiscord-accept-rules-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AstroGD","download_url":"https://codeload.github.com/AstroGD/discord-accept-rules-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AstroGD%2Fdiscord-accept-rules-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270946068,"owners_count":24672890,"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","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"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":["astrogd","bot","discord","discordjs","embed","javascript","mainframe","message","nodejs","reaction","role","verification","verify"],"created_at":"2024-11-24T05:07:14.794Z","updated_at":"2025-08-18T05:11:22.754Z","avatar_url":"https://github.com/AstroGD.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discord Accept Rules\n\nDiscord Accept Rules is a simple Discord Bot that let's members get a role by clicking on a reaction.\nWhile this can be used in many different ways, the most common is to get access to a server after verifying and agreeing to the servers rules.\n\nThis is a simple bot with just one use case - No overloaded functionality and not resource-heavy\n\n## Installation\n\n- Edit config/config.json and insert your Discord Bot User Token [Here's an explanation on how to create a Discord Bot Account](https://astrogd.medium.com/how-to-create-a-discord-bot-application-afbe0e1e76af).\n- **In order for your bot to work make sure to enable the \"Server Members Intent\"! [More on that can be found here](https://astrogd.medium.com/how-to-create-a-discord-bot-application-afbe0e1e76af)**\n- Edit config/discord-accept-rules-bot.json and insert the required values:\n    - guildid: The ID of the server, the Bot should listen to (Example: 195221422682013696).\n    - roleid: The ID of the role, the Bot should give Users, that accepted the rules.\n    - embedColor: The Hex Color with the \"#\" that should be used for the Embed, the Bot sends where you can accept the rules.\n    - verifyMessageTitle: The Title of the Embed\n    - verifyMessageDescription: The Description of the Embed\n    - verifyMessageFields: Field Values if you need more content inside your embed (Scroll down for more information)\n    - verifyMessageReaction: Reactioncode of the Reaction that is being used to verify the rules. To get the Reactioncode, search your emoji [here](https://emojipedia.org/) and click on \"copy\".\n\n## Usage\n\nTo start the Bot you need [NodeJS](https://nodejs.org/en/download/current/) installed on your Device. Then open a command prompt in the folder, you've installed the Mainframe to and type `npm install`. This will install all required dependencies that are needed to run the bot. This may take a while depending on the speed of your server's internet connection and performance.\n\n**NodeJS 12 or higher is required for this bot to work!**\n\nAfter the installation is finished type `npm start` in the same location; the Bot should now start. After finishing the initialization you can type `help` and press enter to get a list of available commands.\n\n#### Note: you don't need to install the dependencies every time you want to run the bot. This step is only required once before your first use and after you update your bot.\n\n### verifyMessageFields\n\nverifyMessageFields contains an Array with an object for each additional field. Each Object can contain the following parameters:\n\n- title: (String) The Title of your Field\n- value: (String) The content of your Field (supports formatting)\n- inline: (Boolean, Default false) true if you want the field to be on the right side of the field above. You can create Table like Structures with this option\n- empty: (Boolean, Default false) if true an empty Field wil be created for spacing. title and value are being ignored, inline not!\n\nExample:\n\n   ```json\n   [\n    {\n     \"title\": \"Title\",\n     \"value\": \"Content\",\n     \"inline\": true\n    },\n    {\n     \"title\": \"Title2\",\n     \"value\": \"Content2\",\n     \"inline\": true\n    },{\n     \"empty\": true\n    },{\n     \"title\": \"After Empty\",\n     \"value\": \"After Empty content\"\n    }\n   ]\n   ```\n\n### Role and Serverids\n\nTo get Role and Serverids, you may use a bot, to keep things simple. I recommend [DynoBot](https://www.dynobot.net/).\nYou can kick Dyno after you've got the required ID's\n\nGet Serverid: ?serverinfo --\u003e On the bottom of the Embed you can find ID: \"SOME ID HERE\"\nGet Role-ID: ?roleinfo \u003cRolename\u003e --\u003e First field contains the ID of the role\n\n### Using custom emojis as reaction\n\nIf you want the bot to react with a custom emoji, you need to adjust the discord-accept-rules-bot.json config.\nThe property `verifyMessageReaction` not only accepts Unicode emojis, but also Discord Emoji Identifiers.\n\nTo get an identifier of a custom emoji use `/getEmoji [Emoji]`. *Adjust accordingly if you have changed the prefix for this command*\u003cbr\u003e\nMake sure you haven't disabled this command in the config if you want to use it!\n\n**Note: The bot can only use emojis from your server or other servers he was invited in - Custom emojis from servers the bot is not connected to will result in an \"unknown emoji\" error**\n    \n## Updating from V1\nIf you have used V1 of this bot: No worries\n- Make sure you have NodeJS 12 or higher installed by using `node -v` inside a console window\n- Replace every file **except files located in \"db\" or \"config\"** with the new ones from [here](https://github.com/AstroGD/discord-accept-rules-bot/releases/latest)\n- Run `npm install` inside the bots folder to install all required dependencies\n- Make sure you have \"Server Members Intent\" enabled for your Discord Bot Application. [More on that can be found here](https://astrogd.medium.com/how-to-create-a-discord-bot-application-afbe0e1e76af)\n\nNow you're good to go!\n\nIf you're having issues make sure to reach out to me\n    \n    \n## Thank you for using my Bot\nIf you have any questions feel free to reach out:\n\nTwitter: [@astrogd](https://www.twitter.com/astrogd)\n\nInstagram: [@astrogd](https://www.instagram.com/astrogd)\n\nEmail: hello@astrogd.eu\n\nDiscord: AstroGD#3416 [Discord Server](https://go.astrogd.eu/discord)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastrogd%2Fdiscord-accept-rules-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fastrogd%2Fdiscord-accept-rules-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastrogd%2Fdiscord-accept-rules-bot/lists"}