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(
|
self.config.register_global(
|
||||||
mysql_address= " ",
|
mysql_address= " ",
|
||||||
mysql_database = " ",
|
mysql_database = " ",
|
||||||
mysql_user = " ",
|
mysql_username = " ",
|
||||||
mysql_password = " "
|
mysql_password = " "
|
||||||
)
|
)
|
||||||
disable_dateutil()
|
disable_dateutil()
|
||||||
|
@ -25,7 +25,7 @@ class Moderation(commands.Cog):
|
||||||
conf = await self.check_conf([
|
conf = await self.check_conf([
|
||||||
'mysql_address',
|
'mysql_address',
|
||||||
'mysql_database',
|
'mysql_database',
|
||||||
'mysql_user',
|
'mysql_username',
|
||||||
'mysql_password'
|
'mysql_password'
|
||||||
])
|
])
|
||||||
if conf:
|
if conf:
|
||||||
|
@ -44,7 +44,7 @@ class Moderation(commands.Cog):
|
||||||
conf = await self.check_conf([
|
conf = await self.check_conf([
|
||||||
'mysql_address',
|
'mysql_address',
|
||||||
'mysql_database',
|
'mysql_database',
|
||||||
'mysql_user',
|
'mysql_username',
|
||||||
'mysql_password'
|
'mysql_password'
|
||||||
])
|
])
|
||||||
if conf:
|
if conf:
|
||||||
|
@ -68,7 +68,7 @@ class Moderation(commands.Cog):
|
||||||
try:
|
try:
|
||||||
connection = mysql.connector.connect(
|
connection = mysql.connector.connect(
|
||||||
host=await self.config.mysql_address(),
|
host=await self.config.mysql_address(),
|
||||||
user=await self.config.mysql_user(),
|
user=await self.config.mysql_username(),
|
||||||
password=await self.config.mysql_password(),
|
password=await self.config.mysql_password(),
|
||||||
database=await self.config.mysql_database()
|
database=await self.config.mysql_database()
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue