Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

Ext-Creators/discord-ext-events

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

16 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

discord-ext-events

dependencies license

Custom events derived from events dispatched by Discord.

โš ๏ธ Work In Progress!

Installation

This extension is currently not in PyPI.

$ 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.

import discord
from discord.ext import commands, events
from discord.ext.events import member_kick


class 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")

About

๐Ÿ“Ÿ A discord.py extension with additional events.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Contributors 3

  •  
  •  
  •  

Languages