{"id":26167403,"url":"https://github.com/just-rich/newuser","last_synced_at":"2026-05-03T18:36:18.075Z","repository":{"id":281703401,"uuid":"946069792","full_name":"just-rich/newuser","owner":"just-rich","description":"A simple Discord bot that removes a New User role after 3 days of joining, and sends a daily message @mentioning the role, deleting the previous day's message before each time.","archived":false,"fork":false,"pushed_at":"2025-04-11T22:26:53.000Z","size":9,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T23:31:17.422Z","etag":null,"topics":["bot","discord","discord-bot","discord-js","discord-js-bot","discord-message","discord-message-sender","discord-messages","discord-roles","discordbot","newuser","newusers"],"latest_commit_sha":null,"homepage":"https://richw.xyz","language":"JavaScript","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/just-rich.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"just-rich","ko_fi":"itsrich","liberapay":"rich","buy_me_a_coffee":"itsrich","custom":"https://paypal.me/punkrockrich"}},"created_at":"2025-03-10T15:04:15.000Z","updated_at":"2025-04-11T22:26:56.000Z","dependencies_parsed_at":"2025-03-12T04:01:24.215Z","dependency_job_id":null,"html_url":"https://github.com/just-rich/newuser","commit_stats":null,"previous_names":["just-rich/newuser"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/just-rich/newuser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/just-rich%2Fnewuser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/just-rich%2Fnewuser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/just-rich%2Fnewuser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/just-rich%2Fnewuser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/just-rich","download_url":"https://codeload.github.com/just-rich/newuser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/just-rich%2Fnewuser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32580213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: 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":["bot","discord","discord-bot","discord-js","discord-js-bot","discord-message","discord-message-sender","discord-messages","discord-roles","discordbot","newuser","newusers"],"created_at":"2025-03-11T17:35:42.344Z","updated_at":"2026-05-03T18:36:18.044Z","avatar_url":"https://github.com/just-rich.png","language":"JavaScript","funding_links":["https://github.com/sponsors/just-rich","https://ko-fi.com/itsrich","https://liberapay.com/rich","https://buymeacoffee.com/itsrich","https://paypal.me/punkrockrich"],"categories":[],"sub_categories":[],"readme":"# New User: Discord Role Removal and Daily Message Bot\n\n## Overview\n\nThis is a simple Discord bot that performs two main functions:\n1. Automatically removes a specified role from users after they have had it for 3 days or after 3 days of joining the server.\n2. Sends a daily message to a specified channel at a specified time.\n\n## Features\n\n1. **Role Removal**: The bot checks all users in the server and removes a specific role if they have had it for 3 days or more.\n2. **Daily Reminder Message**: The bot sends a daily reminder message to a specified channel at a specified time. It also deletes the previous day's message before sending a new one.\n\n## How It Works\n\n### Role Removal\n\n- The bot periodically checks all users in the server who have the specified role.\n- If a user has had the role for 3 days or more, the bot removes the role from the user.\n- When a new user joins the server, the bot sets a timeout to remove the role after 3 days if the user still has it.\n\n### Daily Reminder Message\n\n- The bot sends a daily message to a specified channel at a specified time.\n- Before sending the new message, it deletes the message it sent the previous day.\n- The message content and the channel ID are specified in the `config.json` file.\n\n## Configuration (`config.json`)\n\nThe bot is configured using a `config.json` file, rename `config.json.example` to it. Below is an example of the `config.json` file and an explanation of each field:\n\n```json\n{\n  \"token\": \"discord_bot_token_here\",\n  \"roleId\": \"134862535106809449\",\n  \"checkInterval\": 3600000, // 1 hour in milliseconds\n  \"channelId\": \"872294229240598548\",\n  \"dailyMessage\": \"Hey \u003c@\u0026134862535106809449\u003e! Just a friendly reminder, **BEWARE of scammers \u0026 impersonators** in your friend requests \u0026 DMs! Our team will **__never__** send you a friend request or DM you first. Please protect yourself! Learn about our scam prevention guidelines here https://discord.com/channels/872241427063668767/1181602885650370615/1181602941380075600\",\n  \"lastMessageId\": null,\n  \"dailyMessageTime\": \"07:00\" // Time in HH:MM format (24-hour clock, UTC)\n}\n```\n\n### Fields\n\n- `token`: Your Discord bot token. Replace `discord_bot_token_here` with your actual bot token.\n- `roleId`: The ID of the role that should be removed after 3 days.\n- `checkInterval`: The interval at which the bot checks for users with the role. Specified in milliseconds (3600000 ms = 1 hour).\n- `channelId`: The ID of the channel where the daily message should be sent.\n- `dailyMessage`: The content of the daily message.\n- `lastMessageId`: **Do not change this.** The ID of the last message sent by the bot. This is used to delete the previous day's message before sending a new one.\n- `dailyMessageTime`: The time at which the daily message should be sent. Specified in `HH:MM` format (24-hour clock, UTC).\n\n## Installation and Setup\n\n1. **Clone the repository**:\n   ```sh\n   git clone https://github.com/just-rich/newuser.git\n   cd newuser\n   ```\n\n2. **Install dependencies**:\n   ```sh\n   npm install\n   ```\n\n3. **Configure the bot**:\n   - Open the `config.json` file and update the fields with your bot token, role ID, channel ID, and desired message content and time.\n\n4. **Run the bot**:\n   ```sh\n   npm start\n   ```\n\n## Usage\n\n- The bot will automatically start checking for users with the specified role and remove it if they have had it for 3 days or more.\n- The bot will send a daily message to the specified channel at the configured time and delete the previous day's message before sending a new one.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.\n\n---\n\nslapped together by [rich](https://richw.xyz) for [NVSTly](https://nvstly.com)'s Discord [community](https://nvstly.com/go/discord)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjust-rich%2Fnewuser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjust-rich%2Fnewuser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjust-rich%2Fnewuser/lists"}