feat(moderation): added required config values for prisma connections
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 58s
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 58s
This commit is contained in:
parent
6d326b0873
commit
b8c3efdedc
1 changed files with 7 additions and 5 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue