Add IP command
This commit is contained in:
parent
9908c06b3a
commit
8176a841f7
6
main.py
6
main.py
@ -222,4 +222,10 @@ async def uptime(ctx):
|
|||||||
|
|
||||||
await ctx.reply(embed=embed)
|
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)
|
bot.run(config.TOKEN)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user