{"id":19635244,"url":"https://github.com/haccer/discord-scripts","last_synced_at":"2025-04-28T07:32:01.165Z","repository":{"id":45514523,"uuid":"127789614","full_name":"haccer/discord-scripts","owner":"haccer","description":"A collection of scripts to enhance your Discord experience.","archived":true,"fork":false,"pushed_at":"2019-06-20T03:20:00.000Z","size":20,"stargazers_count":34,"open_issues_count":1,"forks_count":31,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-14T18:36:21.748Z","etag":null,"topics":["discord","discord-delete","discord-logging","discord-py","discord-selfbot","logging","script"],"latest_commit_sha":null,"homepage":null,"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/haccer.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}},"created_at":"2018-04-02T17:32:18.000Z","updated_at":"2024-10-03T05:13:22.000Z","dependencies_parsed_at":"2022-07-14T16:47:54.095Z","dependency_job_id":null,"html_url":"https://github.com/haccer/discord-scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haccer%2Fdiscord-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haccer%2Fdiscord-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haccer%2Fdiscord-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haccer%2Fdiscord-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haccer","download_url":"https://codeload.github.com/haccer/discord-scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251271313,"owners_count":21562524,"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-delete","discord-logging","discord-py","discord-selfbot","logging","script"],"created_at":"2024-11-11T12:24:20.721Z","updated_at":"2025-04-28T07:32:00.733Z","avatar_url":"https://github.com/haccer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discord Scripts\n\n[![Python 3.5](https://img.shields.io/badge/Python-3.5-blue.svg)](https://www.python.org/download/releases/3.0/)\n[![GitHub license](https://img.shields.io/github/license/haccer/discord-scripts.svg)](https://github.com/haccer/discord-scripts/blob/master/LICENSE)\n\nA collection of Discord scripts I made a while ago for other people. \nReplace the \"your_token_goes_here\" with your Discord token. A short tutorial to get your Discord token is located [here](https://github.com/TheRacingLion/Discord-SelfBot/wiki/Discord-Token-Tutorial).\n\n## Requirements\n\n- Python 3.5\n- `pip3 install -r requirements.txt`\n\n## del.py\n\nA delete script to mass delete your messages from a channel. \n\n### Usage\n\nYou can delete a specific number of messages by entering `.del number`, or you can delete every message by just entering `.del` in the channel.\n\nExample: `.del 50` will delete last 50 messages in the channel.\n\n## log_discord.py\n\nA proof-of-concept script to log Discord chatrooms. This can relay logged messages to a private Discord channel and/or save them to a text file. This is very useful for spying on people.\n\n### Usage \u0026 Configuration\n\nInstructions on how to configure this for your needs are annotated in the script: \n\n```python\n@c.event\nasync def on_message(message):\n    # Replace '412905214533838722' with the Discord channel ID you want to log.\n    if message.channel.id == \"412905214533838722\":\n        await log_discord(message, \"replace with relay channel id\", \"name_of_file.txt\")\n```\n\nCopy this _if_ statement for each channel you want to log, replacing the default values with your own.\n\n#### Example Logging Multiple Channels\n\n```python\n@c.event\nasync def on_message(message):\n    if message.channel.id == \"452307014715179022\":\n        await log_discord(message, \"452307600785276933\", \"log_452307014715179022.txt\")\n    if message.channel.id == \"532307014715171337\":\n        await log_discord(message, \"265407600785277777\", \"log_532307014715171337.txt\")\n```\n\n## collect.py\n\nA script that will collect and save the last ~11k messages from a channel.\n\n### Usage\n\nSame usage as del.py -- the scrape is triggered by `.del` to let the users who see it think you are just deleting your messages.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaccer%2Fdiscord-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaccer%2Fdiscord-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaccer%2Fdiscord-scripts/lists"}