japandotorg / nextcord-ext-space

A nextcord extension with logging functionality

Home Page:https://pypi.org/project/nextcord-ext-space/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nextcord/ext/space

discord pythonVersion implementation format status version license

An event logger for nextcord.

Install

$ python3.8 -m pip install -U nextcord-ext-space

Extras

databases package

You may want to manually install databases with the correct drivers installed.

Examples

import logging

from nextcord.ext.space import Astronaut, EventFlags, Configuration
from nextcord.ext.space.recorders.databases import DatabaseRecorder

logging.basicConfig(filename='myBotLog.log', filemode='w', level=logging.DEBUG)

config = Configuration(
    events=EventFlags.guilds()
    recorder=DatabaseRecorder('url/to/my/database')
)

client = Astronaut(config=config)

client.run('TOKEN')

About

A nextcord extension with logging functionality

https://pypi.org/project/nextcord-ext-space/

License:MIT License


Languages

Language:Python 100.0%