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
Telegram Radio - A User-bot who continuously play random audio files (from the famous telegram music channel @mveargasm) in the intended voice chat.

MvEargasmDJ: This is my submission for the Telegram Radio Project of Baivaru. Which required a userbot to continiously play random audio files from th

eyaadh 24 Nov 12, 2022
Tweet stream in OBS browser source

Tweetron TweetronはOBSブラウザーソースを使用してツイートを画面上に表示するツールソフトです Windowsのみ対応 (Windows10動作確認済) ダウンロード こちらから最新版をダウンロードしてください (現在ベータテスト版を配布しています) Download ver0.0.

Cube 0 Apr 05, 2022
A python library for creating selfbots/automating your Nertivia account.

nertivia-selfbot (WIP) A python library for creating selfbots/automating your Nertivia account. how to use Download the nertivia_selfbot folder from t

Ben Tettmar 2 Feb 03, 2022
Use Node JS Keywords In Python!!!

Use Node JS Keywords In Python!!!

Sancho Godinho 1 Oct 23, 2021
SmsSender v3.0.0 - the script is designed to send free SMS to any number and with any text.

SmsSender v3.0.0 - скрипт предназначен для бесплатной отправки SMS на любой номер и с любым текстом. Возможны небольшие баги, в скором времени исправл

Андрей Сергеев 20 Dec 03, 2021
A telegram bot writen in python for mirroring files on the internet to Google Drive

owner of this repo :- AYUSH contact me :- AYUSH Slam Mirror Bot This is a telegram bot writen in python for mirroring files on the internet to our bel

Thanusara Pasindu 1 Nov 21, 2021
A telegram bot to track whales activities on multiple blockchains.

Telegram Bot : Whale Watcher A straightforward telegram bot written in python to track whales activity on multiple blockchains, using whale-alert API

Laurenz Bougan 1 Dec 10, 2021
This is an implementation example of a bot that periodically sends predictions to the alphasea-agent.

alphasea-example-model alphasea-example-modelは、 alphasea-agent に対して毎ラウンド、予測を投稿するプログラムです。 Numeraiのexample modelに相当します。 準備 alphasea-example-modelの動作には、

AlphaSea 11 Jul 28, 2022
A beginner’s guide to train and deploy machine learning pipelines in Python using PyCaret

This model involves Insurance bill prediction, which was subsequently deployed on Heroku PaaS

1 Jan 27, 2022
A Python wrapper around the Twitter API.

Python Twitter A Python wrapper around the Twitter API. By the Python-Twitter Developers Introduction This library provides a pure Python interface fo

Mike Taylor 3.4k Jan 01, 2023
TheTimeMachine - Weaponizing WaybackUrls for Recon, BugBounties , OSINT, Sensitive Endpoints and what not

The Time Machine - Weaponizing WaybackUrls for Recon, BugBounties , OSINT, Sensi

Anmol K Sachan 112 Dec 29, 2022
GET-ACQ is a python tool used to gather all companies acquired by a given company domain name.

get-acq 🏢 GET-ACQ is a python tool used to gather all companies acquired by a given company domain name. It is done by calling SecurityTrails API. Us

Milan 7 Dec 19, 2022
Ethereum Gas Fee for the MacBook Pro touchbar (using BetterTouchTool)

Gasbar Ethereum Gas Fee for the MacBook Pro touchbar (using BetterTouchTool) Worried about Ethereum gas fees? Me too. I'd like to keep an eye on them

TSS 51 Nov 14, 2022
Bitcoin-chance-wheel - Try your luck at getting bitcoins

Program Features - ✍️ Why did we name this tool the Lucky Wheel? - ✍️ This tool

hack4lx 20 Dec 22, 2022
Microsoft Azure Storage Library for Python

Microsoft Azure Storage Library for Python

Microsoft Azure 329 Dec 16, 2022
This is a open source discord bot project

pythonDiscordBot This is a open source discord bot project #based on the MAX A video: https://www.youtube.com/watch?v=jHZlvRr9KxM Prerequisites Python

Edson Holanda Teixeira Junior 3 Oct 11, 2021
An API wrapper for Discord written in Python.

disnake A modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python. About disnake All the contributors and develop

557 Jan 05, 2023
Huggingface transformers for discord

disformers Huggingface transformers for discord base source butyr/huggingface-transformer-chatbots install pip install -U disformers example see examp

SpaceDEVofficial 1 Nov 09, 2021
Easily report Instagram pages and close the page

Program Features - 📌 Delete target post on Instagram. - 📌 Delete Media Target post on Instagram - 📌 Complete deletion of the target account on Inst

hack4lx 11 Nov 25, 2022