forked from test/mau_mau_bot
add icon attributions to source command
This commit is contained in:
parent
72515e37ed
commit
2041e3cb1f
1 changed files with 9 additions and 1 deletions
|
@ -59,6 +59,13 @@ help_text = ("Follow these steps:\n\n"
|
||||||
source_text = ("This bot is Free Software and licensed under the AGPL. "
|
source_text = ("This bot is Free Software and licensed under the AGPL. "
|
||||||
"The code is available here: \n"
|
"The code is available here: \n"
|
||||||
"https://github.com/jh0ker/mau_mau_bot")
|
"https://github.com/jh0ker/mau_mau_bot")
|
||||||
|
attributions = ("Attributions:\n"
|
||||||
|
'Draw icon by '
|
||||||
|
'<a href="http://www.faithtoken.com/">Faithtoken</a>\n'
|
||||||
|
'Pass icon by '
|
||||||
|
'<a href="http://delapouite.com/">Delapouite</a>\n'
|
||||||
|
"Originals available on http://game-icons.net\n"
|
||||||
|
"Icons edited by ɳick")
|
||||||
|
|
||||||
|
|
||||||
@user_locale
|
@user_locale
|
||||||
|
@ -71,7 +78,8 @@ def help(bot, update):
|
||||||
@user_locale
|
@user_locale
|
||||||
def source(bot, update):
|
def source(bot, update):
|
||||||
"""Handler for the /help command"""
|
"""Handler for the /help command"""
|
||||||
send_async(bot, update.message.chat_id, text=_(source_text),
|
send_async(bot, update.message.chat_id, text=_(source_text) + '\n' +
|
||||||
|
_(attributions),
|
||||||
parse_mode=ParseMode.HTML, disable_web_page_preview=True)
|
parse_mode=ParseMode.HTML, disable_web_page_preview=True)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue