mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-12-17 23:24:20 +00:00
send something pls
This commit is contained in:
parent
3fb9905166
commit
cb1650d912
1 changed files with 2 additions and 2 deletions
|
@ -415,8 +415,8 @@ def hooks_github():
|
||||||
# TODO: add secret check
|
# TODO: add secret check
|
||||||
message = f"🐙 Nuovi aggiornamenti a Royalnet:\n"
|
message = f"🐙 Nuovi aggiornamenti a Royalnet:\n"
|
||||||
for commit in j.get("commits", []):
|
for commit in j.get("commits", []):
|
||||||
message += f"<b>{commit['message']}</b> di {commit['author']}\n"
|
message += f'<a href="https://github.com/Steffo99/royalnet/commit/{commit["sha"]}">{commit["message"]}</b> di {commit["author"]}\n'
|
||||||
telegram_bot.send_message(config["Telegram"]["main_group"],
|
telegram_bot.send_message(config["Telegram"]["main_group"], message,
|
||||||
parse_mode="HTML", disable_web_page_preview=True, disable_notification=True)
|
parse_mode="HTML", disable_web_page_preview=True, disable_notification=True)
|
||||||
return "Done."
|
return "Done."
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue