Discondelete, is a Discord self-bot to delete dm's or purge all messages from a guild.

Overview

Contributors Forks Stargazers Issues MIT License


Logo

Discondelete

Discondelete, is a Discord self-bot to delete dm's or purge all messages from a guild.
Report Bug ยท Request Feature

Table of Contents

  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact

About The Project

Built With

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

  • Python
    sudo apt install python3
  • Discord.py
    python3 -m pip install -U discord.py

Installation

  1. Clone the repo
    git clone https://github.com/core-hacked/Discondelete.git
  2. Run the file with python
    py main.py

Usage

  1. Running the file and passing it a token via the prompt
python3 main.py
# Results in 4 prompts for the token, a prefix, a heartbeat timeout and the server purge prefix

Then in discord type your prefix or the default #DEL or #PS to purge messages from an entire server

  1. Running the file with arguments
python3 main.py *followed by arguments*
# arguments: 
# -t or --token [token] | Specify a token
# -p or --prefix [prefix] | Specify a prefix (for double word prefix' or ones with special char's use quotes)
# -b or --heartbeat [int] | Specify the heartbeat timeout 
# -s or --serverpurge [prefix] | Specify a prefix for a server purge or leave blank for default
# -h or --help | to view this in the terminal/console

Then in discord type your prefix or the default #DEL or #PS to purge messages from an entire server

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be... learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

This repository is distributed under the MIT License. See LICENSE for more information.

Contact

[email protected]

You might also like...
A simple bot that lives in your Telegram group, logging messages to a Postgresql database and serving statistical tables and plots to users as Telegram messages.
A simple bot that lives in your Telegram group, logging messages to a Postgresql database and serving statistical tables and plots to users as Telegram messages.

telegram-stats-bot Telegram-stats-bot is a simple bot that lives in your Telegram group, logging messages to a Postgresql database and serving statist

Discord Mass Edit is a unique, purging related Discord tool that differs from the regular mass delete.

Discord Mass Edit is a unique, purging related Discord tool that differs from the regular mass delete. This tool will automatically edit every message in a chosen channel and change it to a random string.

A discord Server Bot made with Python, This bot helps people feel better by inspiring them with motivational quotes or by responding with a great message, also the users of the server can create custom messages by telling the bot with Commands.
A discord Server Bot made with Python, This bot helps people feel better by inspiring them with motivational quotes or by responding with a great message, also the users of the server can create custom messages by telling the bot with Commands.

A discord Server Bot made with Python, This bot helps people feel better by inspiring them with motivational quotes or by responding with a great message, also the users of the server can create custom messages by telling the bot with Commands.

A discord self bot that replies to messages using cleverbot

cleverbot-discord-self A discord self bot that replies to messages using cleverbot Bot will respond to DMs and channels in the channels list. Need to

A discord bot that can detect Nitro Scam Links and delete them to protect other users
A discord bot that can detect Nitro Scam Links and delete them to protect other users

A discord bot that can detect Nitro Scam Links and delete them to protect other users. Add it to your server from here.

A Discord bot that rewards players in Minecraft for sending messages on Discord

MCRewards-Discord-Bot A Discord bot that rewards players in Minecraft for sending messages on Discord How to setup: Download this git as a .zip, or cl

Discord bot code to stop users that are scamming with fake messages of free discord nitro on servers in order to steal users accounts.
Discord bot code to stop users that are scamming with fake messages of free discord nitro on servers in order to steal users accounts.

AntiScam Discord bot code to stop users that are scamming with fake messages of free discord nitro on servers in order to steal users accounts. How to

Linky bot, A open-source discord bot that allows you to add links to ur website, youtube url, etc for the people all around discord to see!

LinkyBot Linky bot, An open-source discord bot that allows you to add links to ur website, youtube url, etc for the people all around discord to see!

๐Ÿ˜ˆ  Discord RAGE is a Python tool that allows you to automatically spam messages in Discord
๐Ÿ˜ˆ Discord RAGE is a Python tool that allows you to automatically spam messages in Discord

๐Ÿ˜ˆ Discord RAGE Python tool that allows you to automatically spam messages in Discord ๐Ÿน Setup Make sure you have Python installed and PIP is added to

Comments
  • Added message to delete counter

    Added message to delete counter

    Added counter which specifies how many messages the user wants to delete

    I also removed some log messages during testing but they can be added in a revision

    opened by joe-butler2 2
  • Exception Thread

    Exception Thread

    Hello, issue when running #PS command.

    Exception in thread Thread-1: Traceback (most recent call last): File "C:\Users\xxxx\AppData\Local\Programs\Python\Python39\lib\threading.py", line 973, in _bootstrap_inner self.run() File "C:\Users\xxx\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\gateway.py", line 134, in run if self._last_recv + self.heartbeat_timeout < time.perf_counter(): TypeError: unsupported operand type(s) for +: 'float' and 'str'

    bug 
    opened by Wanted135 2
  • Update main.py

    Update main.py

    The code above contained an error on line 138, where the sys.platform() method was called as if it were a function. However, sys.platform is a string that represents the platform on which the script is being executed, and not a function that can be called.

    opened by s3xov1rtual 1
Releases(1.2.3)
  • 1.2.3(Dec 15, 2022)

  • 1.2.2(May 26, 2022)

  • 1.2.1(Dec 28, 2021)

  • 1.2.0(Dec 28, 2021)

    This release adds:

    • The option to delete a certain amount of messages when adding a number after your prefix eg. #DEL 5
    • Text after selecting options to inform the user of the usage.
    Source code(tar.gz)
    Source code(zip)
  • 1.1.0(Dec 20, 2021)

    This release adds:

    • New -o / --output argument which replaces -n (see readme)
    • Fixes if statements when no arguments are specified.
    • Improves code.
    Source code(tar.gz)
    Source code(zip)
  • 1.1.0-pre-release(Dec 20, 2021)

    This release adds:

    • New -n or --nooutput argument to specify if you want deleted messages in the console (W.I.P - Refer to readme)
    • Code improvements and minor fixes
    This release contains bugs and is not production-ready.
    
    Source code(tar.gz)
    Source code(zip)
  • 1.0.2(Dec 19, 2021)

    This release hopefully fixes issue #1

    • Change null checks to use == "" instead of is None which looks to have fixed this issue.
    All releases below are affected, and should not work unless you specify arguments when calling main.py
    
    Source code(tar.gz)
    Source code(zip)
  • 1.0.1(Dec 16, 2021)

  • 1.0.0(Dec 15, 2021)

    This release is the base of this project, it includes:

    • Deletion of messages from a guild
    • Deletion of messages in DM's or single channels
    • Setting prefix' for the delete and purge server commands. See Usage for instructions or execute the script with --help
    • Setting a heartbeat timeout using -b, --heartbeat [int]
    default prefixes: 
    #DEL | for single-channel or DM purge
    #PS | for server-purge / deleting all messages inside of a guild
    
    *See usage for a complete guide* 
    
    Source code(tar.gz)
    Source code(zip)
Owner
core
random person why do u care?
core
A Discord bot that allows you to rapidly deploy Minecraft servers seamlessly and painlessly from Discord.

Lyra - rapidly and painlessly deploy Minecraft servers from Discord Lyra lets you deploy Minecraft server instances via Docker with control through a

1 Dec 23, 2021
A Simple, LightWeight, Statically-Typed Python3 API wrapper for GogoAnime.

AniKimi API A Simple, LightWeight, Statically-Typed Python3 API wrapper for GogoAnime The v2 of gogoanimeapi (depreciated) Made with JavaScript and Py

17 Dec 09, 2022
Proxy-Bot - Python proxy bot for telegram

Proxy-Bot ๐Ÿค– Proxy bot between the main chat and a newcomer, allows all particip

Anton Shumakov 3 Apr 01, 2022
This repository is used to provide data to zzhack,

This repository is used to provide data to zzhack, but you don't have to care about anything, just write your thinking down, and you can see your thinking is rendered in zzhack perfectly

5 Apr 29, 2022
Bot for Telegram data Analysis

Bot Scraper for telegram This bot use an AI to Work powered by BOG Team you must do the following steps to make the bot functional: Install the requir

8 Nov 28, 2022
Free and Open Source Machine Translation API. 100% self-hosted, no limits, no ties to proprietary services. Built on top of Argos Translate.

LibreTranslate Try it online! | API Docs Free and Open Source Machine Translation API, entirely self-hosted. Unlike other APIs, it doesn't rely on pro

UAV4GEO 3.5k Jan 03, 2023
A Discord Server Cloner Which Can Clone Any Discord Server In Just Few Minutes

A Discord Server Cloner Which Can Clone Any Discord Server In Just Few Minutes.

samet 4 Jul 23, 2022
A GitHub Follower Bot that is a WIP.

GitHub Follower Bot (WIP) Work In Progress This bot is a WIP. There are still many features I plan to add and code I need to improve (I'm still fairly

Christian Deacon 71 Dec 29, 2022
Quack-SMS-BOMBER - Quack Toolkit By IkigaiHack

Quack Toolkit By IkigaiHack About Quack Toolkit Quack Toolkit is a set of tools

Marcel 2 Aug 19, 2022
A Python script to backup all repos (public or private) of a user.

GithubBackupAllRepos A Python script to backup all repos (public or private) of a user. Features Clone public and private repos Load specified SSH key

Podalirius 15 Jan 03, 2023
โœจ Music&Video Userbot

๐ŸŽถ Fizi - UserBot ๐ŸŽถ ๐Ÿค– Telegram UserBot Untuk Memutar Lagu Dan Video Di Obrolan Suara Telegram. โœจ Didukung Oleh PyTgCalls Pyrogram ๐Ÿ“ Persyaratan Pyt

F I Z I โ€ข โฑฎeฦ™รญpres 4 Mar 29, 2022
Wrapper for Between - ๋น„ํŠธ์œˆ์„ ์œ„ํ•œ ํŒŒ์ด์ฌ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ

PyBetween Wrapper for Between - ๋น„ํŠธ์œˆ์„ ์œ„ํ•œ ํŒŒ์ด์ฌ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ Legal Disclaimer ์˜ค์ง ๊ต์œก์  ๋ชฉ์ ์œผ๋กœ๋งŒ ์‚ฌ์šฉํ• ์ˆ˜ ์žˆ์œผ๋ฉฐ, ๋น„ํŠธ์œˆ์€ VCNC์˜ ์ž์‚ฐ์ž…๋‹ˆ๋‹ค. ์•…์˜์  ๊ณต๊ฒฉ์— ์ด์šฉํ• ์‹œ ์ฒ˜๋ฒŒ ๋ฐ›์„์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์‚ฌ์šฉ์— ๋”ฐ๋ฅธ ์ฑ…์ž„์€ ์‚ฌ์šฉ์ž๊ฐ€

1 Mar 15, 2022
Marketplace for self published books

Nile API API for the imaginary Nile marketplace for self published books. This is a project created to try out FastAPI as the post promising ASGI serv

Matt de Young 1 Jan 31, 2022
Python Wrapper for aztro - The Astrology API | Get Daily Horoscope ๐Ÿ’ซ

PyAztro PyAztro is a client library for aztro written in Python. aztro provides horoscope info for sun signs such as Lucky Number, Lucky Color, Mood,

Sameer Kumar 30 Jan 08, 2023
Robot to convert files to direct links, hosting files on Telegram servers, unlimited and without restrictions

stream-cloud demo : downloader_star_bot Run : Docker : install docker , docker-compose set Environment or edit Config/init.py docker-compose up Heroku

53 Dec 21, 2022
Telegram File Renamer Bot

RENAMER_BOT Telegram File Renamer Bot Configs TG_BOT_TOKEN - Get bot token from @BotFather API_ID - From my.telegram.org API_HASH - From my.telegram.o

Lntechnical 37 Dec 27, 2022
DEPRECATED - Official Python Client for the Discogs API

โš ๏ธ DEPRECATED This repository is no longer maintained. You can still use a REST client like Requests or other third-party Python library to access the

Discogs 483 Dec 31, 2022
A Python library for miHoYo bbs and HoYoLAB Community

A Python library for miHoYo bbs and HoYoLAB Community. genshin ๅŽŸ็ฅž็ญพๅˆฐๅฐๅŠฉๆ‰‹

384 Jan 05, 2023
A python script for hitting the kik API to enumerate people based on a username/userlist

kick3d Recon script for enumerating users off of the Kik API. This script has the ability to check single usernames or run through a userlist of usern

Sakura Samurai 19 Oct 04, 2021
Automate saving your Discover Weekly Playlist using Python.

SpotWeekly Automate saving your Discover Weekly Playlist using Python. Made with 3 and FastAPI. The saved playlist link is sent to my discord server

shourya 6 Jan 03, 2022