mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 09:16:19 +00:00
Update code.py
This commit is contained in:
@@ -131,6 +131,8 @@ async def advanced(ctx, max_tokens: int = None, temperature: float = None, frequ
|
||||
prompt_size = 5
|
||||
#update the database
|
||||
c.execute("UPDATE data SET max_tokens = ?, temperature = ?, frequency_penalty = ?, presence_penalty = ?, prompt_size = ? WHERE guild_id = ?", (max_tokens, temperature, frequency_penalty, presence_penalty, prompt_size, ctx.guild.id))
|
||||
conn.commit()
|
||||
await ctx.respond("Advanced settings updated", ephemeral=True)
|
||||
#create a command called "delete" that only admins can use wich deletes the guild id, the api key, the channel id and the advanced settings from the database
|
||||
@bot.command(name="default", description="Default settings")
|
||||
##@discord.commands.permissions(administrator=True)
|
||||
|
||||
Reference in New Issue
Block a user