fixed two undefined variable errors
This commit is contained in:
parent
19e745939a
commit
41d2716a06
1 changed files with 1 additions and 5 deletions
|
|
@ -614,10 +614,6 @@ async def currency(ctx, arg1=None, arg2=None, arg3=None, arg4=None):
|
||||||
async def meme(ctx):
|
async def meme(ctx):
|
||||||
async def update_meme_webpage(filename):
|
async def update_meme_webpage(filename):
|
||||||
server_folder = (os.getenv('ftp_public_html') + 'ai-memes/')
|
server_folder = (os.getenv('ftp_public_html') + 'ai-memes/')
|
||||||
try:
|
|
||||||
file_count = len(server_files)
|
|
||||||
except:
|
|
||||||
file_count = 0
|
|
||||||
new_file_name = str(time.time_ns()) + ".png"
|
new_file_name = str(time.time_ns()) + ".png"
|
||||||
await upload_sftp(filename, server_folder, new_file_name)
|
await upload_sftp(filename, server_folder, new_file_name)
|
||||||
print("Uploaded", new_file_name)
|
print("Uploaded", new_file_name)
|
||||||
|
|
@ -1409,7 +1405,7 @@ async def change_model(ctx, model_choice='0'):
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
default = '\n'.join([f"{choice}: {name}" for choice, name in model_choices.items()])
|
default = '\n'.join([f"{choice}: {name}" for choice, name in model_choices.items()])
|
||||||
output += model_options
|
output += model_choices
|
||||||
await ctx.send(output)
|
await ctx.send(output)
|
||||||
|
|
||||||
@bot.command(
|
@bot.command(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue