Change connections to correct folder path
This commit is contained in:
parent
1f1e482013
commit
88c545b96f
@ -26,7 +26,7 @@ class Stats(commands.Cog):
|
|||||||
|
|
||||||
@tasks.loop(seconds=30)
|
@tasks.loop(seconds=30)
|
||||||
async def dump_count(self):
|
async def dump_count(self):
|
||||||
connection = sqlite3.connect("count.db")
|
connection = sqlite3.connect("data/count.db")
|
||||||
cursor = connection.cursor()
|
cursor = connection.cursor()
|
||||||
|
|
||||||
for command_name, count in self.bot.temp_command_count.items():
|
for command_name, count in self.bot.temp_command_count.items():
|
||||||
@ -56,7 +56,7 @@ class Stats(commands.Cog):
|
|||||||
@commands.dm_only()
|
@commands.dm_only()
|
||||||
@commands.is_owner()
|
@commands.is_owner()
|
||||||
async def stats(self, ctx: commands.Context):
|
async def stats(self, ctx: commands.Context):
|
||||||
connection = sqlite3.connect("count.db")
|
connection = sqlite3.connect("data/count.db")
|
||||||
cursor = connection.cursor()
|
cursor = connection.cursor()
|
||||||
|
|
||||||
# Pull the top 5 commands being run
|
# Pull the top 5 commands being run
|
||||||
|
Loading…
x
Reference in New Issue
Block a user