From b8c3efdedc8181dbe0706e57a17e00898de5c98f Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 26 Oct 2023 20:45:05 -0400 Subject: [PATCH] feat(moderation): added required config values for prisma connections --- moderation/moderation.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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,