Skip to content

Commit

Permalink
0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
skrphenix committed Nov 13, 2022
1 parent 0057d2e commit 96283a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ using **`GIT`**

```python
from discord_cooldown.modules import MySQL
from discord_cooldown.cooldown import Cooldown
from discord_cooldown import Cooldown

import discord

Expand Down
6 changes: 3 additions & 3 deletions package/discord_cooldown/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ def __init__(self, filename: str = None, table_name: str = "cooldowns"):


class MySQL:
def __init__(self, host: str, db_name: str, user: str, passwd: str, *,
port: int = 3306, table_name: str = "cooldowns"):
def __init__(self, host: str, db_name: str, user: str, passwd: str, port: int = 3306, *,
table_name: str = "cooldowns"):
"""
Use this to store the cooldown commands data in MySQL database
Expand All @@ -45,7 +45,7 @@ def __init__(self, host: str, db_name: str, user: str, passwd: str, *,
self.table_name = f"`{table_name}`"

self.fmtr: str = "%s"
self.connector = lambda: mysql.connect(host=self.DB_HOST, user=self.DB_USER,
self.connector = lambda: mysql.connect(host=self.DB_HOST, port=self.DB_PORT, user=self.DB_USER,
passwd=self.DB_PASSWD, database=self.DB_NAME)


Expand Down

0 comments on commit 96283a2

Please sign in to comment.