mirror of
https://github.com/UiO-Gaming/mustafa.git
synced 2026-11-05 13:56:48 +01:00
add request timeout publicip
This commit is contained in:
1 file changed
+1
-1
@@ -96,7 +96,7 @@ class DevTools(commands.Cog):
|
||||
@commands.command()
|
||||
async def publicip(self, ctx: commands.Context):
|
||||
"""Sends WAN IP-address. inb4 I leak my IP-address"""
|
||||
data = requests.get('https://wtfismyip.com/json').json()
|
||||
data = requests.get('https://wtfismyip.com/json', timeout=10).json()
|
||||
ip = data['YourFuckingIPAddress']
|
||||
location = data['YourFuckingLocation']
|
||||
isp = data['YourFuckingISP']
|
||||
|
||||
Reference in new issue
Block a user