17 lines
379 B
Python
17 lines
379 B
Python
|
from core.lib.threshold import threshold_request
|
||
|
|
||
|
def get_irc_stats():
|
||
|
url = "irc/stats"
|
||
|
payload = {}
|
||
|
stats = threshold_request(url, payload)
|
||
|
if not stats:
|
||
|
return {}
|
||
|
return stats
|
||
|
|
||
|
def get_irc_networks():
|
||
|
url = "irc/networks"
|
||
|
payload = {}
|
||
|
networks = threshold_request(url, payload)
|
||
|
if not networks:
|
||
|
return {}
|
||
|
return networks
|