0.3 - /ping pings to urls #117

Closed
opened 2022-11-17 10:05:10 +01:00 by edraft · 0 comments
Owner

Als Techniker möchte ich sehen, welchen ping der BOt zu verschieden Servern hat.

Als grundlage dafür dient diese Funktion:

def _get_ping(url: str) -> float:
    from icmplib import ping
    ping_result = ping(url, count=4, interval=0.2, privileged=False)
    return ping_result.avg_rtt
Als Techniker möchte ich sehen, welchen ping der BOt zu verschieden Servern hat. Als grundlage dafür dient diese Funktion: ```py def _get_ping(url: str) -> float: from icmplib import ping ping_result = ping(url, count=4, interval=0.2, privileged=False) return ping_result.avg_rtt ```
edraft added this to the Sprint 0.3 milestone 2022-11-17 10:05:10 +01:00
edraft added the
improvement
label 2022-11-17 10:05:10 +01:00
edraft self-assigned this 2022-11-17 10:05:10 +01:00
edraft added this to the Sprint 0.3 project 2022-11-17 10:05:10 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sh-edraft.de/sh_discord_bot#117
No description provided.