Skip to content

Commit

Permalink
移除pushplus推送改为tg跟邮件通知
Browse files Browse the repository at this point in the history
  • Loading branch information
bin862324915 authored Jul 19, 2024
1 parent 7cebc97 commit 92a29a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def ssh_multiple_connections(hosts_info, command):
user_list, hostname_list = ssh_multiple_connections(hosts_info, command)
content = "SSH服务器登录信息:\n"
for user, hostname in zip(user_list, hostname_list):
content += f"{user},服务器:{hostname}\n"
content += f"用户名:{user},服务器:{hostname}\n"
beijing_timezone = timezone(timedelta(hours=8))
time = datetime.now(beijing_timezone).strftime('%Y-%m-%d %H:%M:%S')
loginip = requests.get('https://api.ipify.org?format=json').json()['ip']
Expand Down

0 comments on commit 92a29a5

Please sign in to comment.