Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Ext-Creators/discord-ext-events
📟 A discord.py extension with additional events.
https://github.com/Ext-Creators/discord-ext-events
discordpy python python3
Last synced: 11 days ago
JSON representation
📟 A discord.py extension with additional events.
- Host: GitHub
- URL: https://github.com/Ext-Creators/discord-ext-events
- Owner: Ext-Creators
- License: apache-2.0
- Archived: true
- Created: 2020-07-29T21:37:48.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-11T03:05:59.000Z (over 3 years ago)
- Last Synced: 2024-07-31T09:11:33.019Z (3 months ago)
- Topics: discordpy, python, python3
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 5
- Watchers: 3
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- awesome-discordpy - Ext-Creators/discord-ext-events - A discord.py extension with additional events. (Archived/Deprecated / Miscellaneous)
README
discord-ext-events
==================|dependencies| |license|
Custom events derived from events dispatched by Discord.
⚠️ Work In Progress!
Installation
------------This extension is currently not in PyPI.
.. code-block:: sh
$ python3 -m pip install -U git+https://github.com/Ext-Creators/discord-ext-events
Usage
-----An example for when subscribing to the on_member_kick event.
.. code-block:: py
import discord
from discord.ext import commands, events
from discord.ext.events import member_kickclass MyBot(commands.Bot, events.EventsMixin):
async def on_ready(self):
print('Logged in!')async def on_member_kick(self, member: discord.Member, entry: discord.AuditLogEntry):
print(f'{member} was kicked from {member.guild}!')bot = MyBot(command_prefix='!', intents=discord.Intents.all())
bot.run("TOKEN")
.. |dependencies| image:: https://img.shields.io/librariesio/github/Ext-Creators/discord-ext-events
.. |license| image:: https://img.shields.io/pypi/l/discord-ext-events.svg