From bfafb330c30363f0478232b8c35f9642a78cb582 Mon Sep 17 00:00:00 2001 From: snipe <72265661+notsniped@users.noreply.github.com> Date: Mon, 2 Jun 2025 19:38:42 +0530 Subject: [PATCH 1/2] Add a server invite command for isobot This was created so that people who love isobot in different servers can easily and quickly add the bot to their own servers too! This also contains some other links for our official website, and for the Discord Bot support server. --- main.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/main.py b/main.py index 2d74456..c27bf30 100644 --- a/main.py +++ b/main.py @@ -622,6 +622,19 @@ async def credits(ctx: ApplicationContext): ) await ctx.respond(embed=localembed) +@client.slash_command( + name="invite", + description="Quickly get a link to invite isobot to your own server." +) +async def invite(ctx: ApplicationContext): + """Quickly get a link to invite isobot to your own server.""" + localembed = discord.Embed( + title="Invite isobot to your server!", + description="You can invite isobot to your own server (or other servers that you manage) to get the same great experience there too!\n\nJust click [here](https://discord.com/oauth2/authorize?client_id=896437848176230411&permissions=8&redirect_uri=https%3A%2F%2Fbit.ly%2Fisobotinv&integration_type=0&scope=bot+applications.commands) to invite.", + color=color + ) + await ctx.respond(embed=localembed) + # Initialization active_cogs = ( "economy", From 98b8bbcf351917a3fbbedec6deaa2c607ec4ad10 Mon Sep 17 00:00:00 2001 From: snipe <72265661+notsniped@users.noreply.github.com> Date: Mon, 2 Jun 2025 20:02:46 +0530 Subject: [PATCH 2/2] Add additional helpful links to `/invite` --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index c27bf30..83628ff 100644 --- a/main.py +++ b/main.py @@ -633,6 +633,8 @@ async def invite(ctx: ApplicationContext): description="You can invite isobot to your own server (or other servers that you manage) to get the same great experience there too!\n\nJust click [here](https://discord.com/oauth2/authorize?client_id=896437848176230411&permissions=8&redirect_uri=https%3A%2F%2Fbit.ly%2Fisobotinv&integration_type=0&scope=bot+applications.commands) to invite.", color=color ) + localembed.add_field(name="Our Website", value="https://pybotdevs.github.io/isobot") + localembed.add_field(name="Isobot Support Server", value="https://discord.gg/NcJgwKWgvw") await ctx.respond(embed=localembed) # Initialization