1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Fix displayed name in github hook

This commit is contained in:
Steffo 2019-01-02 19:18:02 +01:00
parent 18088eff00
commit fb30ed2242

View file

@ -416,7 +416,7 @@ def hooks_github():
message = f"🐙 Nuovi aggiornamenti a Royalnet:\n"
for commit in j.get("commits", []):
if commit["distinct"]:
message += f'<a href="https://github.com/Steffo99/royalnet/commit/{commit["url"]}">{commit["message"]}</a> di <b>{commit["author"]}</b>\n'
message += f'<a href="https://github.com/Steffo99/royalnet/commit/{commit["url"]}">{commit["message"]}</a> di <b>{commit["author"].get("username", "anonimo")}</b>\n'
telegram_bot.send_message(config["Telegram"]["main_group"], message,
parse_mode="HTML", disable_web_page_preview=True, disable_notification=True)
return "Done."