From 1f461af68fe4dc133d5eeee7395633d2fda6dde6 Mon Sep 17 00:00:00 2001 From: Uwe Pfeifer Date: Thu, 10 Nov 2022 21:58:57 +0100 Subject: [PATCH] Added invite URL generation on startup with simple permissions --- bot.ini.example | 3 ++- pybot-f.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bot.ini.example b/bot.ini.example index 532f1f8..f2ae8ef 100644 --- a/bot.ini.example +++ b/bot.ini.example @@ -8,7 +8,8 @@ # - bottoken # This is the bottoken of your discord bot. # If you need help on how to set up a Discord app with bot token, -# try searching the internet for "How to create a Discord bot token". +# try searching the internet for "How to create a Discord bot token" or +# visit: https://discordpy.readthedocs.io/en/latest/discord.html # Also don't forget to invite the bot onto your server(s). [General] diff --git a/pybot-f.py b/pybot-f.py index b97ac94..457c551 100644 --- a/pybot-f.py +++ b/pybot-f.py @@ -36,6 +36,8 @@ bot = commands.Bot(command_prefix='.', description=description, intents=intents) @bot.event async def on_ready(): print(f'pybot-f logged in as {bot.user} (ID: {bot.user.id})') + iurl = discord.utils.oauth_url(bot.user.id) + print(f'Bot invite URL: {iurl}') print('------')