feat(moderation): added required config values for prisma connections
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 58s

This commit is contained in:
Seaswimmer 2023-10-26 20:45:05 -04:00
parent 6d326b0873
commit b8c3efdedc
Signed by: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

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