Properly fetch query data

This commit is contained in:
2022-08-03 07:20:30 +01:00
parent 6af8e94336
commit 60270d9636
3 changed files with 36 additions and 9 deletions

View File

@@ -203,3 +203,9 @@ def send_irc_message(net, num, channel, msg, nick=None):
payload["nick"] = nick
messaged = threshold_request(url, payload, method="PUT")
return messaged
def get_irc_nick(net, num):
url = f"irc/nick/{net}/{num}"
payload = {}
nick = threshold_request(url, payload, method="GET")
return nick