bot: Added invite command
All checks were successful
Build Docker / Build Docker (push) Successful in 20s
All checks were successful
Build Docker / Build Docker (push) Successful in 20s
This commit is contained in:
parent
bb3d517bcd
commit
762e7ba13d
8
bot.py
8
bot.py
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user