fix(moderation): fixed some methods using the wrong config names
Some checks failed
Pylint / Pylint (push) Failing after 1m13s

This commit is contained in:
Seaswimmer 2023-10-04 09:47:57 -04:00
parent dbb02c0892
commit cc744465c5
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -15,7 +15,7 @@ class Moderation(commands.Cog):
self.config.register_global(
mysql_address= " ",
mysql_database = " ",
mysql_user = " ",
mysql_username = " ",
mysql_password = " "
)
disable_dateutil()
@ -25,7 +25,7 @@ class Moderation(commands.Cog):
conf = await self.check_conf([
'mysql_address',
'mysql_database',
'mysql_user',
'mysql_username',
'mysql_password'
])
if conf:
@ -44,7 +44,7 @@ class Moderation(commands.Cog):
conf = await self.check_conf([
'mysql_address',
'mysql_database',
'mysql_user',
'mysql_username',
'mysql_password'
])
if conf:
@ -68,7 +68,7 @@ class Moderation(commands.Cog):
try:
connection = mysql.connector.connect(
host=await self.config.mysql_address(),
user=await self.config.mysql_user(),
user=await self.config.mysql_username(),
password=await self.config.mysql_password(),
database=await self.config.mysql_database()
)