{"id":18562380,"url":"https://github.com/josephistired/discord-selfbot","last_synced_at":"2025-11-01T13:30:30.812Z","repository":{"id":50431957,"uuid":"502578745","full_name":"josephistired/Discord-SelfBot","owner":"josephistired","description":"This is a simple Discord bot that utilizes the discord.py library to delete messages sent from you in a Discord Server or Direct Message. The bot can clear all messages in a specific channel or in Direct Messages with a single command, making it easy to clean up cluttered chat history. ","archived":false,"fork":false,"pushed_at":"2023-02-05T16:35:54.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-26T11:26:23.982Z","etag":null,"topics":["bot","discord","discord-bot","python","selfbot-discord","selfbot-for-discord"],"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/josephistired.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":"2022-06-12T10:02:40.000Z","updated_at":"2023-01-29T12:12:03.000Z","dependencies_parsed_at":"2023-02-15T22:30:23.115Z","dependency_job_id":null,"html_url":"https://github.com/josephistired/Discord-SelfBot","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josephistired%2FDiscord-SelfBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josephistired%2FDiscord-SelfBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josephistired%2FDiscord-SelfBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josephistired%2FDiscord-SelfBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/josephistired","download_url":"https://codeload.github.com/josephistired/Discord-SelfBot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239293953,"owners_count":19615041,"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":["bot","discord","discord-bot","python","selfbot-discord","selfbot-for-discord"],"created_at":"2024-11-06T22:09:27.166Z","updated_at":"2025-11-01T13:30:30.772Z","avatar_url":"https://github.com/josephistired.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⛔ Disclaimer\nPlease note that using this bot, even though it is created with discord.py, could result in your Discord account being banned by Discord. According to [Discord](https://support.discord.com/hc/en-us/articles/115002192352-Automated-user-accounts-self-bots-), automating normal user accounts outside of the OAuth2/bot API is prohibited and may lead to account termination. By using this bot, you acknowledge and accept that I cannot be held responsible for any consequences that may occur as a result of using this bot, including but not limited to your Discord account being banned. Use of this bot is at your own risk!\n\n# 🤖 Discord-SelfBot\nThis is a simple Discord bot that utilizes the discord.py library to delete messages sent from you in a Discord Server or Direct Message. The bot can clear all messages in a specific channel or in Direct Messages with a single command, making it easy to clean up cluttered chat history. \n\n# 🔧 Prerequisites\nBefore using this bot, it is important to make sure you have the latest version of Python installed on your system, your Discord account token, and most importantly discord.py version 1.7.3, which is not the latest version but newer versions don't allow you to use a user's token instead only a bot token.\n\n* [Python](https://www.python.org/downloads/)\n* Discord.py 1.7.3 - Run the command in your terminal. \n   -  Windows -\u003e py -m pip install -U discord.py==1.7.3\n   -  Raspberry Pi -\u003e pip install -U discord.py==1.7.3\n* [Discord Account Token](https://www.androidauthority.com/get-discord-token-3149920/) **NEVER GIVE YOUR TOKEN TO ANYONE**\n\n# 💫 Getting Started\nNow that you have all the required Prerequisites. You can move on to the next steps. By running the commands below.\n\n```\ngit clone https://github.com/josephistired/Discord-SelfBot.git\ncd Discord-SelfBot\n```\n\n# ⚙️ Configuration\nOnce you have cloned the bot to your local machine and have all the necessary prerequisites in place, you must now edit the bot.py file for the bot to work correctly.\n\n\n```py\ntoken = \"Place Your Discord Account Token Here!\"\n\n```\n### ⚙️ Extra Configuration\nPlease note that this Discord bot also has additional configuration options available for users who wish to customize their experience beyond the preset commands for clearing messages and Direct Messages. You can edit those by simplying editing the bot.py file.\n\n```py\nif commands[0] == 'Place Custom Command Here To Clear Messages!':\n                    if len(commands) == 1:\n\nif commands[0] == 'Place Custom Command Here To Clear All Dms!':\n            for channel in client.private_channels:\n```\n\n\n# 🎊 Starting The Bot\nIf you have successfully completed all the previous steps, the bot should now be ready to run. If you are on Windows, you can run the bot by opening the bot.bat file. If you are a raspberrpi, simply run the command **nohup python bot.py**. Once the bot is running, you can enjoy its features! If you encounter any issues, you can create a pull request for help.\n\n\n# 💬 Commands\n\n| Command  | Description                                          | \n| -------- | ---------------------------------------------------- | \n| 0        | Clears all messages in channel the command is ran in |\n| cleardms | Clears all of user's dms                             | \n\n# 🕑 Run on Startup\nThe bot is best run on a device that is on 24/7, like a Raspberry Pi. Running the bot on a device that is always on will ensure optimal results. If using Windows, you can set the bot to start on startup by following the steps below.\n\n1. Open the bot.bat file in file explorer\n2. Right click, press 'create shortcut'\n3. Press the Windows logo key + R, type shell:startup, then select OK. This opens the Startup folder.\n4. Copy and paste the bot.bat shortcut you just made to the startup folder.\n\n### License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosephistired%2Fdiscord-selfbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosephistired%2Fdiscord-selfbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosephistired%2Fdiscord-selfbot/lists"}