{"id":17930371,"url":"https://github.com/wbnns/disable-dm-discord-guild","last_synced_at":"2026-02-17T14:31:10.573Z","repository":{"id":221430432,"uuid":"754304368","full_name":"wbnns/disable-dm-discord-guild","owner":"wbnns","description":"Disable DMs for all members in your Discord server to help keep them safe from being targeted by scammers","archived":false,"fork":false,"pushed_at":"2024-02-08T01:17:32.000Z","size":9,"stargazers_count":2,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-20T20:31:47.589Z","etag":null,"topics":["bot","discord","dm","safety","security","server-protection"],"latest_commit_sha":null,"homepage":"","language":"Python","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/wbnns.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-07T19:41:10.000Z","updated_at":"2025-02-08T19:40:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"f4b42792-aae9-4194-bce0-e6c5abeab21b","html_url":"https://github.com/wbnns/disable-dm-discord-guild","commit_stats":null,"previous_names":["wbnns/disable-dm-discord-guild"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/wbnns/disable-dm-discord-guild","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wbnns%2Fdisable-dm-discord-guild","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wbnns%2Fdisable-dm-discord-guild/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wbnns%2Fdisable-dm-discord-guild/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wbnns%2Fdisable-dm-discord-guild/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wbnns","download_url":"https://codeload.github.com/wbnns/disable-dm-discord-guild/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wbnns%2Fdisable-dm-discord-guild/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29547367,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T13:00:00.370Z","status":"ssl_error","status_checked_at":"2026-02-17T12:57:14.072Z","response_time":100,"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":["bot","discord","dm","safety","security","server-protection"],"created_at":"2024-10-28T21:13:01.240Z","updated_at":"2026-02-17T14:31:10.547Z","avatar_url":"https://github.com/wbnns.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# No-DM Discord Bot\n\n## Introduction\n\nThis Python package is designed for interacting with the Discord API to enable or disable direct messaging (DM) on a Discord server. It utilizes environment variables for secure and flexible configuration.\n\n## Installation\n\nTo install and use this package, follow these steps:\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/wbnns/disable-dm-discord-guild.git\n   ```\n2. Navigate to the cloned directory:\n   ```bash\n   cd no-dm-discord\n   ```\n3. Install required dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n## Configuration\n\nBefore running the script, you need to set up the following environment variables in a `.env` file:\n\n- `DISCORD_BOT_TOKEN`: Your Discord bot token.\n- `DISCORD_GUILD_ID`: The Guild ID of your Discord server.\n\nExample `.env` file:\n\n```\nDISCORD_BOT_TOKEN=your_bot_token\nDISCORD_GUILD_ID=your_guild_id\n```\n\n## Usage\n\nRun the script using Python:\n\n```python\npython main.py\n```\n\n## Getting a Bot Token\n\nTo obtain a bot token:\n\n1. Visit the [Discord Developer Portal](https://discord.com/developers/applications).\n2. Create a new application and add a bot to it.\n3. Copy the bot token provided.\n\n## Setting Up the Bot\n\nEnsure your bot has administrative permissions on the Discord server for it to function correctly.\n\n## Getting the Guild ID\n\nTo find your Discord server's Guild ID:\n\n1. Enable Developer Mode in Discord (Settings -\u003e Advanced -\u003e Developer Mode).\n2. Right-click your server name and click 'Copy ID'.\n\n## Contributing\n\nContributions to this package are welcome. Please follow these steps to contribute:\n\n1. Fork the repository.\n2. Create a new branch for your feature.\n3. Commit your changes.\n4. Push to the branch.\n5. Open a pull request.\n\n## Code Sample\n\nBelow is a simple example of how to use this package within your Python project to disable DMs for your Discord server:\n\n```python\nfrom no_dm_discord import update_discord_status\n\n# Ensure your .env file has the DISCORD_BOT_TOKEN and DISCORD_GUILD_ID set\nupdate_discord_status()\n\nprint(\"DMs have been successfully disabled.\")\n```\n\nThis example assumes you have set up your environment variables correctly and have the `no_dm_discord` package installed in your environment.\n\nRemember, the actual function call and package import might need to be adjusted based on your package structure and function definitions.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwbnns%2Fdisable-dm-discord-guild","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwbnns%2Fdisable-dm-discord-guild","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwbnns%2Fdisable-dm-discord-guild/lists"}