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
Python Client for MLflow Tracking Server

Python Client for MLflow Python client for MLflow REST API. Features: Unlike MLflow Tracking client all REST API methods are exposed to user. All clas

MTS 35 Dec 23, 2022
Simple stock price analytics

mune · Mune is an open source python web application built to analyze stocks, named after Homma Munehisa. Currently, the forecasting component is powe

Richard Hong 14 Aug 30, 2021
Some 3Commas helper bots, AltRank, GalaxyScore, Watchlist, Auto-Compound

3Commas Cyber Bot Helpers A collection of 3Commas bot helpers I wrote. (collection will grow over time) Disclaimer THE SOFTWARE IS PROVIDED "AS IS", W

Ron Klinkien 176 Jan 02, 2023
MassReportBot - Discord Mass Report Bot By Dropout

Discord Mass Report Bot By Dropout Discord Report Bot, Just Re-Made The "Admin R

vanis / 1800 0 Jan 20, 2022
SpaceManJax's open-source Discord Bot. Now on Github!

SpaceManBot This is SpaceManJax's open-source Discord.py Bot. Now on Github! This bot runs on Repl.it, which is a free online code editor. It can do a

Jack 1 Nov 16, 2021
Telegram Bot to store Posts and Documents and it can Access by Special Links.

Telegram Bot to store Posts and Documents and it can Access by Special Links. I Guess This Will Be Usefull For Many People..... 😇 . Features Fully cu

REX BOTZ 1 Dec 23, 2021
AWS DeepRacer Free Student Workshop: Run faster by using your custom waypoints

AWS DeepRacer Free Student Workshop: Run faster by using your custom waypoints Reward Function Template for waypoints def reward_function(params):

Yuen Cheuk Lam 88 Nov 27, 2022
A google search telegram bot.

Google-Search-Bot A google search telegram bot. Made with Python3 (C) @FayasNoushad Copyright permission under MIT License License - https://github.c

Fayas Noushad 37 Nov 24, 2022
Auto Liker, Auto Reaction, Auto Comment, Auto Follower Tool. RajeLiker Credit Hacker.

Auto Liker, Auto Reaction, Auto Comment, Auto Follower Tool. RajeLiker Credit Hacker. Unlimited RajeLiker Credit Hack. Thanks To RajeLiker.

Md. Mehedi Hasan 32 Dec 28, 2022
a discord bot coded in Python which shows news based on the term searched by the user

Noah Miller v1.0 a discord bot coded in Python which shows news based on the term searched by the user Add the bot to your server About This is a disc

klevr 3 Nov 08, 2021
Automatically render tens of thousands of unique NFT images individually as png's.

Blend_My_NFTs Description This project is a work in progress (as of Oct 24th, 2021) and will eventually be an add on to Blender. Blend_My_NFTs is bing

Torrin Leonard 894 Dec 29, 2022
A simple Discord bot that can fetch definitions and post them in chat.

A simple Discord bot that can fetch definitions and post them in chat. If you are connected to a voice channel, the bot will also read out the definition to you.

Tycho Bellers 4 Sep 29, 2022
Tomli is a Python library for parsing TOML. Tomli is fully compatible with TOML v1.0.0.

Tomli A lil' TOML parser Table of Contents generated with mdformat-toc Intro Installation Usage Parse a TOML string Parse a TOML file Handle invalid T

Taneli Hukkinen 313 Dec 26, 2022
Unofficial Meteor Client wiki

Welcome to the Unofficial Meteor Client wiki! Meteor FAQs | A rewritten and better FAQ page. Installation Guide | A guide on how to install Meteor Cli

Anti Cope 0 Feb 21, 2022
A python library created to make life easier for Telegram API Developers.

opentele A python library created to make life easier for Telegram API Developers. Read the documentation Features Convert Telegram Desktop tdata sess

103 Jan 02, 2023
A small discord bot to interface with python-discord's snekbox.

A small discord bot to interface with python-discord's snekbox.

Hassan Abouelela 0 Oct 05, 2021
Notion4ever - Python tool for export all your content of Notion page using official Notion API

NOTION4EVER Notion4ever is a small python tool that allows you to free your cont

50 Dec 30, 2022
A Telegram bot to extracting text from images. All languages supported.

OCR Bot A Telegram bot to extracting text from images. All languages supported. Deploy to Heroku Local Deploying Clone the repo git clone https://gith

6 Oct 21, 2022
This package allows interactions with the BuyCoins API.

The BuyCoins Python library allows interactions with the BuyCoins API from applications written in Python.

Abdulazeez Abdulazeez Adeshina 45 May 23, 2022
This will create new discord accounts and add them to your server

Discord-Botter This tool will create new discord accounts add them to your server, this tool needs a captcha api like capmonster.cloud or anti-captcha

Shahzain 27 Nov 30, 2022