feat(discord_bot): Add active flag to friend creation
This commit is contained in:
parent
30403d02c0
commit
74eec18240
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -1,5 +1,6 @@
|
||||
{
|
||||
"conventionalCommits.scopes": [
|
||||
"models"
|
||||
"models",
|
||||
"discord_bot"
|
||||
]
|
||||
}
|
||||
|
||||
@ -82,7 +82,7 @@ async def add_friend(ctx, steam_id, name):
|
||||
if friend:
|
||||
await ctx.respond(content=f'已经存在 {steam_id} {name}')
|
||||
else:
|
||||
friend = dota.Friend.create(steam_id=steam_id, name=name)
|
||||
friend = dota.Friend.create(steam_id=steam_id, name=name, active=True)
|
||||
await ctx.respond(content=f'添加成功 {steam_id} {name}')
|
||||
|
||||
@bot.command(description='禁用朋友', name='deactivate_friend')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user