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

Latest commit

 

History

History
41 lines (28 loc) · 1.22 KB

README.md

File metadata and controls

41 lines (28 loc) · 1.22 KB

science

package versions dependencies license cloned

A simple event logger for discord.py.

View the Changelog here!

Install

$ python3 -m pip install -U discord-ext-science

Extras

databases package

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

Examples

from discord.ext.science import Scientist, EventFlags, Configuration
from discord.ext.science.recorders.databases import DatabasesRecorder
import logging

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

config = Configuration(
    events=EventFlags.guilds(),
    recorder=DatabasesRecorder("url-to-my-database")
)
client = Scientist(config=config)


client.run('TOKEN')