From 2041e3cb1f51aafa851a4bae7d979b2fb64e1fb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Tue, 24 May 2016 09:57:48 +0200 Subject: [PATCH] add icon attributions to source command --- simple_commands.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/simple_commands.py b/simple_commands.py index 2cb99f3..5b1501e 100644 --- a/simple_commands.py +++ b/simple_commands.py @@ -59,6 +59,13 @@ help_text = ("Follow these steps:\n\n" source_text = ("This bot is Free Software and licensed under the AGPL. " "The code is available here: \n" "https://github.com/jh0ker/mau_mau_bot") +attributions = ("Attributions:\n" + 'Draw icon by ' + 'Faithtoken\n' + 'Pass icon by ' + 'Delapouite\n' + "Originals available on http://game-icons.net\n" + "Icons edited by ɳick") @user_locale @@ -71,7 +78,8 @@ def help(bot, update): @user_locale def source(bot, update): """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)