Add IP command

This commit is contained in:
augustin64 2024-04-09 19:36:55 +02:00
parent 9908c06b3a
commit 8176a841f7

View File

@ -222,4 +222,10 @@ async def uptime(ctx):
await ctx.reply(embed=embed)
@bot.command(name="ip")
@root_required
async def get_ip(ctx):
r = requests.get("https://ifconfig.me")
await ctx.reply("Current IP: `"+ r.content.decode("utf-8")+"`")
bot.run(config.TOKEN)