comment
This commit is contained in:
parent
fc335d4537
commit
03f6f1b80c
1 changed files with 5 additions and 0 deletions
|
@ -181,6 +181,8 @@ def do_help(author: str) -> BotResponse:
|
||||||
'attachment_urls': None
|
'attachment_urls': None
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Dueling
|
||||||
|
|
||||||
def duel_request(author: str, args: list[str]) -> BotResponse:
|
def duel_request(author: str, args: list[str]) -> BotResponse:
|
||||||
'''Sends a duel request to another user.'''
|
'''Sends a duel request to another user.'''
|
||||||
if len(args) == 0:
|
if len(args) == 0:
|
||||||
|
@ -207,12 +209,15 @@ def duel_request(author: str, args: list[str]) -> BotResponse:
|
||||||
duel_type = 'competitive'
|
duel_type = 'competitive'
|
||||||
|
|
||||||
db.insert_duel_request(author, target, duel_type)
|
db.insert_duel_request(author, target, duel_type)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'message': f'{target} You have been challenged to a {duel_type} duel by \
|
'message': f'{target} You have been challenged to a {duel_type} duel by \
|
||||||
{author}! Reply with `accept_duel` to accept the challenge.',
|
{author}! Reply with `accept_duel` to accept the challenge.',
|
||||||
'attachment_urls': None
|
'attachment_urls': None
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def delete_account(author: str) -> BotResponse:
|
def delete_account(author: str) -> BotResponse:
|
||||||
return {
|
return {
|
||||||
'message': f'{author} ⚠️ This will permanently delete your account \
|
'message': f'{author} ⚠️ This will permanently delete your account \
|
||||||
|
|
Loading…
Add table
Reference in a new issue