diff --git a/moderation/moderation.py b/moderation/moderation.py index 092ad3a..18b0b67 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -4,7 +4,7 @@ from datetime import datetime, timedelta, timezone from typing import Union import discord import humanize -import mysql.connector +from prisma import Prisma from discord.ext import tasks from pytimeparse2 import disable_dateutil, parse from redbot.core import app_commands, checks, Config, commands @@ -19,10 +19,12 @@ class Moderation(commands.Cog): self.bot = bot self.config = Config.get_conf(self, identifier=481923957134912) self.config.register_global( - mysql_address= " ", - mysql_database = " ", - mysql_username = " ", - mysql_password = " " + database_provider = "sqlite", + database_address= " ", + database_port = " ", + database_name = "moderation", + database_username = "red", + database_password = "red" ) self.config.register_guild( ignore_other_bots = True,