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
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,