Coder Social home page Coder Social logo

notsniped / discord-snipe-bot Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 4.0 1.08 MB

A simple message content sniping Discord bot which you can run yourself!

License: GNU General Public License v3.0

Python 99.97% Batchfile 0.01% Shell 0.02%
discord discord-bot discord-py message-content snipe-bot sniper-bot

discord-snipe-bot's Introduction

Welcome to my bio! o/

New portfolio website! https://notsniped.github.io/portfolio/

Who am I?

I am snipe (notsniped). I am the owner and project-head of multiple services, including isobot. I also own the NKA Software Development organization. If you want to collaborate or join NKA, head over to Discord and feel free to throw me a DM. (@notsniped)

snipe's code rule: reduce (bloat), reuse and rewrite


Github Stats


Views:


Languages & Platforms

                          

My current projects

Links

Discord Server: https://discord.gg/b5pz8T6Yjr

osu! Profile: https://osu.ppy.sh/users/26943522

Instagram: https://www.instagram.com/notsniped/

Devices

  • Lenovo IdeaPad 5 (15ITL05 / i7 11th Gen)
  • iPhone 7 (non-explosive)
  • iPad (Gen 6)
  • Acer Aspire 3 (A315-21-95KF)
  • Corsair K55 RGB and Corsair Katar Pro XT

Extras

OSes: Windows 11 (actually not broken and not that bad)

btw i use arch | Updated 28/09/2022

discord-snipe-bot's People

Contributors

notsniped avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

discord-snipe-bot's Issues

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

  • Add the discord-slash library
  • Initialize the library with the Discord client
  • Make replicas of the snipe and editsnipe commands in slash
  • Debug

AttributeError: module 'discord' has no attribute 'Bot'

File "c:\Users\jcbri\Downloads\discord-snipe-bot-main\Main.py", line 20, in
client = discord.Bot() # READ COMMENT AT LINE 13 FOR MORE INFO
^^^^^^^^^^^
AttributeError: module 'discord' has no attribute 'Bot'

Installed bat, pasted bot token in json, pasted username in main.py, then ran in cmd.

image

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

  • Make log paths and files
  • Write command
  • Debug

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

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.