bot: Added invite command
All checks were successful
Build Docker / Build Docker (push) Successful in 20s

This commit is contained in:
Nathan Woodburn 2023-08-12 15:38:32 +10:00
parent bb3d517bcd
commit 762e7ba13d
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

8
bot.py
View File

@ -5,7 +5,6 @@ from discord import app_commands
import requests
import dns.resolver
load_dotenv()
TOKEN = os.getenv('DISCORD_TOKEN')
@ -95,10 +94,9 @@ async def curl(ctx, url: str):
except requests.exceptions.RequestException as e:
await ctx.response.send_message(f"An error occurred: {e}")
@tree.command(name="invite", description="Invite me to your server")
async def invite(ctx):
await ctx.response.send_message("https://discord.com/api/oauth2/authorize?client_id=1006128164218621972&permissions=0&scope=bot",ephemeral=True)
async def log(message):