fix(moderation): fixed some methods using the wrong config names
Some checks failed
Pylint / Pylint (push) Failing after 1m13s
Some checks failed
Pylint / Pylint (push) Failing after 1m13s
This commit is contained in:
parent
dbb02c0892
commit
cc744465c5
1 changed files with 4 additions and 4 deletions
|
@ -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()
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue