Skip to content

A flexible and easy to use Discord API wrapper for python ๐Ÿš€.

License

Notifications You must be signed in to change notification settings

externref/wyvern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

wyvern

A [WIP] flexible and easy to use Discord API wrapper for python ๐Ÿš€.

Warning: This library is very unstable and things might not work as expected. Feel free to create an issue.

Important Links

Support server: https://discord.gg/FyEE54u9GF

Documentation: https://wyvern.readthedocs.io

PYPI: https://pypi.org/project/wyvern

Installation

$python -m pip install git+https://github.com/sarthhh/wyvern

Example

import asyncio
import os

import wyvern

bot = wyvern.GatewayBot(os.environ["TOKEN"], intents=wyvern.Intents.UNPRIVILEGED)


@bot.listener(wyvern.StartingEvent)
async def starting(event: wyvern.StartingEvent) -> None:
    bot.logger.info("Starting bot...")


# or using the implemented decorators


@bot.on_started()
async def started(event: wyvern.StartedEvent) -> None:
    bot.logger.info(f"Logged in as {event.user.tag}")


async def main():
    async with bot:
        await bot.start()


asyncio.run(main())