mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-20 02:26:32 +01:00
i dont like shronk bot
This commit is contained in:
parent
ce373b1892
commit
ffca402149
2 changed files with 17 additions and 3 deletions
|
@ -96,10 +96,24 @@ class Events(commands.Cog):
|
||||||
else:
|
else:
|
||||||
# Respond to shronk bot
|
# Respond to shronk bot
|
||||||
if message.author.id == 1063875884274163732 and message.channel.can_send():
|
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 = {
|
RESPONSES = {
|
||||||
"Congratulations!!": "Shut up SHRoNK Bot, nobody loves you.",
|
"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, "
|
"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!"
|
||||||
"while yours just sits and collects dust!"
|
|
||||||
}
|
}
|
||||||
for k, v in RESPONSES.items():
|
for k, v in RESPONSES.items():
|
||||||
if k in message.content:
|
if k in message.content:
|
||||||
|
|
|
@ -459,7 +459,7 @@ class UptimeCompetition(commands.Cog):
|
||||||
|
|
||||||
embed.add_field(
|
embed.add_field(
|
||||||
name=_name,
|
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
|
return embed
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue