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
A simple and stupid Miinto API wrapper

miinto-api-wrapper Miinto API Wrapper is a simple python wrapper for Miinto API. Miinto is a fashion luxury marketplace. For more information see the

Giuseppe Checchia 3 Jan 09, 2022
A template / demo bot for the Halcyon matrix bot library

Halcyon stock bot Hello! This is an example / template bot using the halcyon matrix bot library. Feel free to ask questions in the matrix chat #halcyo

Wes Ring 1 Feb 04, 2022
The Easy-to-use Dialogue Response Selection Toolkit for Researchers

Easy-to-use toolkit for retrieval-based Chatbot Our released data can be found at this link. Make sure the following steps are adopted to use our code

GMFTBY 32 Nov 13, 2022
Mventory is an API-driven solution for Makerspaces, Tinkerers, and Hackers.

Mventory is an API-driven inventory solution for Makers, Makerspaces, Hackspaces, and just about anyone else who needs to keep track of "stuff".

Make Monmouth 107 Dec 21, 2022
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
A robust, low-level connector for the Discord API

Bauxite Bauxite is a robust, low-level connector for the Discord API. What is Bauxite for? Bauxite is made for two main purposes: Creating higher-leve

1 Dec 04, 2021
Asyncio SDK for Azure Cosmos DB

Asyncio SDK for Azure Cosmos DB. This library is intended to be a very thin asyncio wrapper around the Azure Comsos DB Rest API. It is not intended to have feature parity with the Microsoft Azure SDK

Grant McDonald 4 Dec 04, 2021
Simple Telegram Bot To Get Feedback from users & Some Other Features

FeedbackBot Simple Telegram Bot To Get Feedback from users & Some Other Features. Features Get Feedback from users Reply to user's feedback Customisab

Arun 18 Dec 29, 2022
Braintree Python library

Braintree Python library The Braintree Python library provides integration access to the Braintree Gateway. TLS 1.2 required The Payment Card Industry

Braintree 230 Dec 18, 2022
Source code of BobuxAdmin bot from Bobux Bot Development server.

BobuxAdmin Source code of BobuxAdmin bot from Bobux Bot Development server. The bot is written with usage of disnake and SQLite database. Functionalit

Bobux Bot Developers 3 Dec 29, 2022
A code to match you with the perfect Taylor Swift song for your mood and relationship status.

taylorswift A package for matching your current mood and relationship status to a suitable Taylor Swift song. Requirements: Python 2 or 3, and the num

Megan Mansfield 82 Dec 09, 2022
A Telegram Bot to manage your music channel with some cool features.

Music Channel Manager V2 A Telegram Bot to manage your music channel with some cool features like appending your predefined username to the musics tag

11 Oct 21, 2022
A python script to acquire multiple aws ec2 instances in a forensically sound-ish way

acquire_ec2.py The script acquire_ec2.py is used to automatically acquire AWS EC2 instances. The script needs to be run on an EC2 instance in the same

Deutsche Telekom Security GmbH 31 Sep 10, 2022
PunkScape Discord bot to lookup rarities, create diptychs and more.

PunkScape Discord Bot A Discord bot created for the Discord server of PunkScapes, a banner NFT project. It was intially created to lookup rarities of

Akuti 4 Jun 24, 2022
CRUD database for python discord bot developers that stores data on discord text channels

Discord Database A CRUD (Create Read Update Delete) database for python Discord bot developers. All data is stored in key-value pairs directly on disc

Ankush Singh 7 Oct 22, 2022
Exports saved posts and comments on Reddit to a csv file.

reddit-saved-to-csv Exports saved posts and comments on Reddit to a csv file. Columns: ID, Name, Subreddit, Type, URL, NoSFW ID: Starts from 1 and inc

70 Jan 02, 2023
Trading bot rienforcement with python

Trading_bot_rienforcement System: Ubuntu 16.04 GPU (GeForce GTX 1080 Ti) Instructions: In order to run the code: Make sure to clone the stable baselin

1 Oct 22, 2021
A simple, lightweight Discord bot running with only 512 MB memory on Heroku

Haruka This used to be a music bot, but people keep using it for NSFW content. Can't everyone be less horny? Bot commands See the built-in help comman

Haruka 4 Dec 26, 2022
Evernote SDK for Python

Evernote SDK for Python Evernote API version 1.28 This SDK is intended for use with Python 2.X For Evernote's beta Python 3 SDK see https://github.com

Evernote 612 Dec 30, 2022
Facebook open graph api implementation using the Django web framework in python

Django Facebook by Thierry Schellenbach (mellowmorning.com) Status Django and Facebook are both rapidly changing at the moment. Meanwhile, I'm caught

Thierry Schellenbach 1.4k Dec 29, 2022