diff --git a/cogs/events.py b/cogs/events.py index 02a4380..ab7708d 100644 --- a/cogs/events.py +++ b/cogs/events.py @@ -96,10 +96,24 @@ class Events(commands.Cog): else: # Respond to shronk bot if message.author.id == 1063875884274163732 and message.channel.can_send(): + if "pissylicious 💦💦" in message.content: + from dns import asyncresolver + import httpx + response = await asyncresolver.resolve("shronkservz.tk", "A") + ip_info_response = await httpx.get(f"http://ip-api.com/json/{response[0].address}") + if ip_info_response.status_code == 200: + return await message.reply( + f"Scattylicious\N{pile of poo}\N{pile of poo}\n" + "IP: {0[query]}\n" + "ISP: {0[isp]}\n" + "Latitude: {0[lat]}\n" + "Longitude: {0[lon]}\n".format( + ip, + ) + ) RESPONSES = { "Congratulations!!": "Shut up SHRoNK Bot, nobody loves you.", - "You run on a Raspberry Pi... I run on a real server": "At least my server gets action, " - "while yours just sits and collects dust!" + "You run on a Raspberry Pi... I run on a real server": "At least my server gets action, while yours just sits and collects dust!" } for k, v in RESPONSES.items(): if k in message.content: diff --git a/cogs/uptime.py b/cogs/uptime.py index a4c87be..87a08f6 100644 --- a/cogs/uptime.py +++ b/cogs/uptime.py @@ -459,7 +459,7 @@ class UptimeCompetition(commands.Cog): embed.add_field( name=_name, - value=f'{ts}, {_row} rows ({rows_per_second:.2f} rows/s)' + value=f'{ts}, {_row:,} rows ({rows_per_second:.2f} rows/s)' ) return embed