mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 17:24:55 +00:00
Update code.py
This commit is contained in:
@@ -367,6 +367,7 @@ async def prefix(ctx, prefix: str):
|
|||||||
await ctx.respond("prefix changed!", ephemeral=True)
|
await ctx.respond("prefix changed!", ephemeral=True)
|
||||||
c.execute("UPDATE data SET prompt_prefix = ? WHERE guild_id = ?", (prefix, ctx.guild.id))
|
c.execute("UPDATE data SET prompt_prefix = ? WHERE guild_id = ?", (prefix, ctx.guild.id))
|
||||||
conn.commit()
|
conn.commit()
|
||||||
|
'''
|
||||||
def reset_uses_count_today():
|
def reset_uses_count_today():
|
||||||
c.execute("UPDATE data SET uses_count_today = 0")
|
c.execute("UPDATE data SET uses_count_today = 0")
|
||||||
conn.commit()
|
conn.commit()
|
||||||
@@ -389,6 +390,7 @@ async def check_day_task():
|
|||||||
await asyncio.sleep(60)
|
await asyncio.sleep(60)
|
||||||
#add a task to the bot that runs check_day every 1 minute
|
#add a task to the bot that runs check_day every 1 minute
|
||||||
bot.loop.create_task(check_day_task())
|
bot.loop.create_task(check_day_task())
|
||||||
|
'''
|
||||||
#run the bot
|
#run the bot
|
||||||
# Replace the following with your bot's token
|
# Replace the following with your bot's token
|
||||||
with open("key.txt") as f:
|
with open("key.txt") as f:
|
||||||
|
|||||||
Reference in New Issue
Block a user