Added secret santa registration
This commit is contained in:
parent
ff6b06aace
commit
8b2683b8e9
1 changed files with 16 additions and 1 deletions
|
|
@ -1323,6 +1323,21 @@ async def personality(ctx):
|
||||||
edit_channel_config(ctx.channel.id, "personality", personality_type)
|
edit_channel_config(ctx.channel.id, "personality", personality_type)
|
||||||
await ctx.send("Personality changed to " + personality_type)
|
await ctx.send("Personality changed to " + personality_type)
|
||||||
|
|
||||||
|
@bot.command(
|
||||||
|
description="Secret Santa Register",
|
||||||
|
help="Register for secret santa!",
|
||||||
|
brief="Register for secret santa!"
|
||||||
|
)
|
||||||
|
async def ss_register(ctx):
|
||||||
|
try:
|
||||||
|
email = ctx.message.content.split(" ", maxsplit=1)[1]
|
||||||
|
print(ctx.author.name, email)
|
||||||
|
with open("santa.txt", 'a') as f:
|
||||||
|
f.writelines(ctx.author.name + ';' + email + ',')
|
||||||
|
await ctx.send(ctx.author.name + " registered for secret santa!")
|
||||||
|
except:
|
||||||
|
await ctx.send("Usage: !ss_register (email address)")
|
||||||
|
|
||||||
|
|
||||||
@bot.command(
|
@bot.command(
|
||||||
description="Change Model",
|
description="Change Model",
|
||||||
|
|
@ -1361,7 +1376,7 @@ async def change_model(ctx, model_choice='0'):
|
||||||
await ctx.send(f"Already set to use {model_name}")
|
await ctx.send(f"Already set to use {model_name}")
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
model_options = '\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_options
|
||||||
await ctx.send(output)
|
await ctx.send(output)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue