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
discord.xp Bot, counts XP for members

discord.xp Bot, counts XP for members. How to setup and run? You must have an mysql database Download libs from the requirements.txt file Configurize

irwing 4 Feb 05, 2022
Discord rich-presence implementation for VALORANT

not working on v1 anymore in favor of v2, but if there's any big bugs i'll try to fix them valorant-rich-presence-client Discord rich presence extensi

colinh 278 Jan 08, 2023
Discord Bot for bugbounty Web

BugbountyBot Discord Bot for Bug Bounty Web The purpose of this bot is to automa

Beek Labs 6 May 03, 2022
Automate HoYoLAB Genshin Daily Check-In Using Github Actions

Genshin Daily Check-In 🤖 Automate HoYoLAB Daily Check-In Using Github Actions KOR, ENG Instructions Fork the repository Go to Settings - Secrets Cli

Leo Kim 41 Jun 24, 2022
Send pm to Admin - Telegram

Send pm to Admin - Telegram

Ahoora 3 Nov 17, 2022
AnyAPI is a library that helps you to write any API wrapper with ease and in pythonic way.

AnyAPI AnyAPI is a library that helps you to write any API wrappers with ease and in pythonic way. Features Have better looking code using dynamic met

Fatih Kilic 129 Sep 20, 2022
MAASTA is a wrapper to create an Ansible inventory for MAAS instances that are provisioned by Terraform.

MAASTA is a wrapper to create an Ansible inventory for MAAS instances that are provisioned by Terraform.

Saeid Bostandoust 144 Dec 16, 2022
The accompanying code for the paper "GMAT: Global Memory Augmentation for Transformers" (Ankit Gupta and Jonathan Berant).

GMAT: Global Memory Augmentation for Transformers This repository contains the accompanying code for the paper: "GMAT: Global Memory Augmentation for

Ankit Gupta 7 Oct 21, 2021
The official source code for Ghost Discord selfbot.

👻 Ghost Selfbot The official code for Ghost which was recently discontinued and released to the public. Feel free to use any of the code found in thi

Ghost 121 Nov 09, 2022
Astro Bot With Golang

Astro-Bot Features: Astronomy Picture of the day Horoscope People In Space How we built it Our team was broken, one person didn't do anything the othe

Vaarun Sinha 1 Nov 21, 2021
Набор утилит для Discord с использованием языка программирования Python.

Discord Tools v0.1 Functions: WebHook spamer Spotify account generator (What?) QR Code Token stealer Token generator Discord nitro gen/check Discor to

Максим Скризов 3 Aug 23, 2022
Pls give vaccine.

Pls Give Vaccine A script to spam yourself with vaccine notifications. Explore the docs » View Demo · Report Bug · Request Feature Table of Contents A

Rohan Mukherjee 3 Oct 27, 2021
A fun hangman style game to guess random movie names with a short summary about the movie.

hang-movie-man Hangman but for movies 😉 This is a fun hangman style game to guess random movie names from the local database and show some summary ab

Ankit Josh 10 Sep 07, 2022
BioThings API framework - Making high-performance API for biological annotation data

BioThings SDK Quick Summary BioThings SDK provides a Python-based toolkit to build high-performance data APIs (or web services) from a single data sou

BioThings 39 Jan 04, 2023
Python3 wrapper for the Sibyl System antispam API for telegram

SibylSystem-Py Python3 wrapper for the Sibyl System antispam API for telegram Installation pip install sibylsystem Usage from SibylSystem import

Kaizoku 6 Nov 04, 2022
Centralized whale instance using github actions, sourcing metadata from bigquery-public-data.

Whale Demo Instance: Bigquery Public Data This is a fully-functioning demo instance of the whale data catalog, actively scraping data from Bigquery's

Hyperquery 17 Dec 14, 2022
Simple bot to receive feedback,same as livegram bot but with more features & full control over bot

Kontak Simple bot to receive feedback,same as livegram bot but with more features & full control over bot Deploy to VPS

Mahin Ahmed 2 Dec 16, 2021
Telegram bot to download tiktok video/audio

TikTokDL (Bot) Telegram RoBot to Download Tiktok video/audio. Features: 👉 Download TikTok Video without Watermark 👉 Download TikTok Video with Water

X-Noid 23 Nov 21, 2022
WhatsApp Api Python - This documentation aims to exemplify the use of Moorse Whatsapp API in Python

WhatsApp API Python ChatBot Este repositório contém uma aplicação que se utiliza

Moorse.io 3 Jan 08, 2022
Python script to decode the EU Covid-19 vaccine certificate

vacdec Python script to decode the EU Covid-19 vaccine certificate This script takes an image with a QR code of a vaccine certificate as the parameter

Hanno Böck 244 Nov 30, 2022