A simple event logger for discord.py.
View the Changelog here!
$ python3 -m pip install -U discord-ext-science
databases
package
You may want to manually install databases
with the correct drivers installed.
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')