A simple message content sniping Discord bot which you can run yourself! Sniping API pulled from isobot and Arch bot

Overview

Discord Snipe Bot

This is a bot made with the same message content sniping API from isobot and Arch bot. It's default prefix is -, however you can also set a custom prefix to your liking. To run it, go into the 'bot_token' variable in the 'USER CONFIG' part of the code. Enter your bot token inside the empty variable. You can get your Discord bot token from https://discord.com/developers Also in the same part of the code, replace 'EMPRY_USERNAME#0000' in the owner variable with your Discord username.

How to install

To install for windows, run win_cmd_install.bat. If you are on a machine running GNU/Linux, run linux_installer.sh.

features

-snipe command to show the most recently deleted message in a channel.

-editsnipe command to show the most recently edited message in a channel.

If you have any new ideas for this bot, or want to report a bug, DM notsniped#4573

Parts of README.md pulled from https://github.com/sniperking3335/heckerbot

Comments
  • bot not showing the deleted messages

    bot not showing the deleted messages

    so i have been using this bot for a few weeks and now when i try to snipe somthing it just says there are no recently deleted messages in #channel when i did delete a message

    wontfix 
    opened by malsaddAS 2
  • this happens when i run

    this happens when i run

    Traceback (most recent call last): File "C:\Users\malwarekat\Desktop\discord-snipe-bot-1.2.1\Main.py", line 105, in client.run(str(bot_token)) File "C:\Users\malwarekat\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\client.py", line 723, in run return future.result() File "C:\Users\malwarekat\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\client.py", line 702, in runner await self.start(*args, **kwargs) File "C:\Users\malwarekat\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\client.py", line 666, in start await self.connect(reconnect=reconnect) File "C:\Users\malwarekat\AppData\Local\Programs\Python\Python39\lib\site-packages\discord\client.py", line 601, in connect raise PrivilegedIntentsRequired(exc.shard_id) from None discord.errors.PrivilegedIntentsRequired: Shard ID None is requesting privileged intents that have not been explicitly enabled in the developer portal. It is recommended to go to https://discord.com/developers/applications/ and explicitly enable the privileged intents within your application's page. If this is not possible, then consider disabling the privileged intents instead. Exception ignored in: <function _ProactorBasePipeTransport.del at 0x000001588C4ACEE0> Traceback (most recent call last): File "C:\Users\malwarekat\AppData\Local\Programs\Python\Python39\lib\asyncio\proactor_events.py", line 116, in del self.close() File "C:\Users\malwarekat\AppData\Local\Programs\Python\Python39\lib\asyncio\proactor_events.py", line 108, in close self._loop.call_soon(self._call_connection_lost, None) File "C:\Users\malwarekat\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 746, in call_soon self._check_closed() File "C:\Users\malwarekat\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 510, in _check_closed raise RuntimeError('Event loop is closed') RuntimeError: Event loop is closed Exception ignored in: <function _ProactorBasePipeTransport.del at 0x000001588C4ACEE0> Traceback (most recent call last): File "C:\Users\malwarekat\AppData\Local\Programs\Python\Python39\lib\asyncio\proactor_events.py", line 116, in del File "C:\Users\malwarekat\AppData\Local\Programs\Python\Python39\lib\asyncio\proactor_events.py", line 108, in close File "C:\Users\malwarekat\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 746, in call_soon File "C:\Users\malwarekat\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 510, in _check_closed RuntimeError: Event loop is closed

    bug 
    opened by malwarekat 2
  • Add support for Discord Slash Commands

    Add support for Discord Slash Commands

    Discord Slash Commands

    This has been added not only to make the bot nicer and more client-sided, we also added these to adjust to the new API restrictions set by discord, that all new bots should adopt the slash commands feature by the end of the month.

    enhancement area:discord slash area:main size/M 
    opened by notsniped 1
  • Replace `config` global declaration with pre-definition

    Replace `config` global declaration with pre-definition

    Using a global declaration for config could lead to SyntaxError being thrown in stdout on execution. This patch should fix SyntaxError from being thrown by using a pre-definition instead.

    bug size/XS 
    opened by notsniped 1
  • Add snipe and editsnipe logging to log file

    Add snipe and editsnipe logging to log file

    Reason

    To make sure the user of the running client has a secure backup of all message deleted content and edits. This means the logs have to stay intact, even after bot shutdown.

    Tasks

    • [x] Make log paths and files
    • [x] Write command
    • [ ] Debug
    enhancement 
    opened by notsniped 1
  • Add snipe and editsnipe logging to local log files

    Add snipe and editsnipe logging to local log files

    Deleted message and edited message event logging

    This is to make sure the user of the running client has a secure backup of all message deleted content and edits. This means all deleted message and edited message event logs have to stay intact, even after bot shutdown or restart.

    enhancement area:main size/M 
    opened by notsniped 0
  • Add support for Discord Slash commands

    Add support for Discord Slash commands

    Reason

    This is to adjust to the new API restrictions set by discord, that all new bots should adopt the slash commands feature by the end of the month.

    Tasks

    • [x] Add the discord-slash library
    • [x] Initialize the library with the Discord client
    • [x] Make replicas of the snipe and editsnipe commands in slash
    • [ ] Debug
    enhancement area:discord slash backlog/tbd 
    opened by notsniped 0
Releases(v2022.1003.0)
  • v2022.1003.0(Oct 3, 2022)

    Thank you for following along in Discord Snipe Bot. This is a tagged stable release (v2022.1003.0)

    What's Changed

    • Add snipe and editsnipe logging to local log files by @notsniped in https://github.com/notsniped/discord-snipe-bot/pull/14

    Full Changelog: https://github.com/notsniped/discord-snipe-bot/compare/v2022.908.0...v2022.1003.0

    Source code(tar.gz)
    Source code(zip)
  • v2022.908.0(Sep 8, 2022)

    Thank you for following along in Discord Snipe Bot. This is a tagged stable release (v2022.908.0)

    This update adds new Discord Slash command support, and some code quality updates for the client.

    What's Changed

    • Create CodeQL code analysis workflow by @notsniped in https://github.com/notsniped/discord-snipe-bot/pull/10
    • Add support for Discord Slash Commands by @notsniped in https://github.com/notsniped/discord-snipe-bot/pull/9
    • Improve code quality according to PEP 8 by @notsniped in https://github.com/notsniped/discord-snipe-bot/pull/11
    • Debloat main code by @notsniped in https://github.com/notsniped/discord-snipe-bot/pull/12

    Full Changelog: https://github.com/notsniped/discord-snipe-bot/compare/v1.2.2...v2022.908.0

    Source code(tar.gz)
    Source code(zip)
  • v1.2.2(Jul 19, 2022)

    This is a tagged release (v1.2.2) for a hotfix.

    What's Changed

    • Replace config global declaration with pre-definition by @notsniped in https://github.com/notsniped/discord-snipe-bot/pull/8

    Full Changelog: https://github.com/notsniped/discord-snipe-bot/compare/v1.2.1...v1.2.2

    Source code(tar.gz)
    Source code(zip)
  • v1.2.1(Jun 25, 2022)

    This update reduces program size by probably 4 bytes

    yes

    What's Changed

    • Debloat import line by @notsniped in https://github.com/notsniped/discord-snipe-bot/pull/6

    Full Changelog: https://github.com/notsniped/discord-snipe-bot/compare/v1.2...v1.2.1

    Source code(tar.gz)
    Source code(zip)
  • v1.2(Jun 23, 2022)

    This release fixes some bugs associated with the config file handler.

    What's Changed

    • Update comment by @notsniped in https://github.com/notsniped/discord-snipe-bot/pull/2
    • Fix config check system by @notsniped in https://github.com/notsniped/discord-snipe-bot/pull/3

    Full Changelog: https://github.com/notsniped/discord-snipe-bot/compare/v1.0...v1.2

    Source code(tar.gz)
    Source code(zip)
  • v1.1.0(Jan 19, 2022)

    This release adds support for json configuration! The config file can be found in the main folder in config.json. For now this config file only contains 2 values, snipe and edit_snipe log as boolean. If you want to turn on snipe or edit_snipe logging in console, just change the falue from false to true. If you want to turn it off, change the value from true to false.

    Example of the config.json file:

    {
      "config": {
        "logs": {
          "snipe": true,
          "editsnipe": true
        }
      }
    }
    

    The default values for snipe and edit_snipe logs is set to true, however you can always edit the config and set them to false.

    Source code(tar.gz)
    Source code(zip)
  • v1.0(Jan 12, 2022)

    This is the original release of this sniping bot.

    This code was tested multiple times and verified by the developer, and all bugs have been fixed. Super minimalist version with only 2 commands, so recommendations are appreciated.

    Commands: -snipe -editsnipe

    Source code(tar.gz)
    Source code(zip)
Owner
notsniped
A random developer who knows HTML, CSS, JavaScript and Python. Also I own and develop a discord bot called 'isobot' which is in 40+ guilds. And yes...
notsniped
Isobot is originally made by notsniped. This is a remix of iso.bot by archisha.

iso6.9-1.2beta iso.bot is originally made by notsniped#0002. This is a remix of iso.bot by αrchιshα#5518. iso6.9 is a Discord bot written in Python an

Kamilla Youver 3 Jan 11, 2022
Karen is a Discord Bot that will check for a list of forbidden words/expressions, removing the message that contains them and replying with another message.

Karen is a Discord Bot that will check for a list of forbidden words/expressions, removing the message that contains them and replying with another message. Everything is highly customizable.

Rafael Almeida 1 Nov 3, 2021
A simple bot which using an API , detects reported discord scams and kicks the user if possible while deleting the message

A simple bot which using an API , detects reported discord scams and kicks the user if possible while deleting the message

Vioshim 3 Nov 16, 2022
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.

Aran 1 Oct 13, 2021
Secret messaging app which you can use to communicate with your friends by encrypting / decrypting secret messages or sending secret message through mail.

Secret-Whisper A Secret messaging app which you can use to communicate with your friends by encrypting / decrypting secret messages ?? or sending secr

null 3 Jan 1, 2022
Bill is a bot capable to Chat with you, search everything on web to you, and send message to yours contacts for you.

Bill Bot The inteligent Bot Bill is a intelligent bot, it can chat, search and send messages to you. Chat with You Send messages on WhatsApp for you S

João Assalim 3 Sep 12, 2021
A Dm Bot, also knows as Mass DM bot which can send one message to All of the Users in a Specific Server!

Discord DM Bot discord.py 1.7.2 python 3.9.5 asyncio 3.4.3 Installation Cloud Host Tutorial uploaded in YouTube, watch it by clicking here. Local Host

hpriyam8 7 Mar 24, 2022
Satoshi is a discord bot template in python using discord.py that allow you to track some live crypto prices with your own discord bot.

Satoshi ~ DiscordCryptoBot Satoshi is a simple python discord bot using discord.py that allow you to track your favorites cryptos prices with your own

Théo 2 Sep 15, 2022
A discord program that will send a message to nearly every user in a discord server

Discord Mass DM Scrapes users from a discord server to promote/mass dm Report Bug · Request Feature Features Asynchronous Easy to use Free Auto scrape

dropout 56 Jan 2, 2023
SquireBot is a Discord bot designed to run and manage tournaments entirely within a Discord.

Overview SquireBot is a Discord bot designed to run and manage tournaments entirely within a Discord. The current intended usecase is Magic: the Gathe

null 7 Nov 29, 2022
A self-bot for discord, written in Python, which will send you notifications to your desktop if it detects an intruder on your discord server

A self-bot for discord, written in Python, which will send you notifications to your desktop if it detects an intruder on your discord server

LevPrav 1 Jan 11, 2022
A custom Discord Rich Presence to display when you're studying so you're stupid friends won't disturb you when you're studying.

Studying RPC Description A custom Discord Rich Presence to display when you're studying so you're stupid friends won't disturb you when you're studyin

John Edmerson Pizarra 4 Nov 19, 2022
GitGram Bot. Bot Then Message You Your Repo Starts, Forks, And Many More

Yet Another GitAlertBot Inspired From Dev-v2's GitGram Run Bot: Local Host Git Clone Repo : For Telethon Version : git clone https://github.com/TeamAl

Alina RoBot 2 Nov 24, 2021
The Bot provide Hadith API and fetch content via api.hadith.sutanlab.id

Bot Hadith-API on Telegram The Bot provide Hadith API and fetch content via api.hadith.sutanlab.id Built With Python Asynchronous HTTP protocol client

xMan 12 Feb 19, 2022
A simple discord bot written in python which can surf subreddits, send a random meme, jokes and also weather of a given place

A simple Discord Bot A simple discord bot written in python which can surf subreddits, send a random meme, jokes and also weather of a given place. We

null 1 Jan 24, 2022
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
Simple software that can send WhatsApp message to a single or multiple users (including unsaved number**)

wp-automation Info: this is a simple automation software that sends WhatsApp message to single or multiple users. Key feature: -Sends message to multi

null 3 Jan 31, 2022
A bot can play all variants, but standard are abit weak, so if you need strongest you can change fsf instead of stockfish_14_Dev

MAINTAINERS Drdisrespect1 and drrespectable lichess-bot Engine communication code taken from https://github.com/ShailChoksi/lichess-bot by ShailChoksi

RPNS Nimsilu 1 Dec 12, 2021
It is a temporary project to study discord interactions. You can set permissions conveniently when you invite a particular disk code bot.

Permission Bot 디스코드 내에 있는 message-components 를 연구하기 위하여 제작된 봇입니다. Setup /config/config_example.ini 파일을 /config/config.ini으로 변환합니다. config 파일의 기본 양식은 아

gunyu1019 4 Mar 7, 2022