Skip to content

Commit

Permalink
Update command descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Zingzy committed Feb 4, 2024
1 parent bdcc1f2 commit 9eda930
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 19 deletions.
2 changes: 1 addition & 1 deletion cogs/getcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def __init__(self, bot):

@app_commands.command(
name="get-code",
description="Get the code to use the https://spoo.me API in your preferred language",
description="Get the code to use the https://spoo.me API in your preferred language to shorten a URL πŸ”—",
)
@app_commands.guild_only()
@app_commands.choices(
Expand Down
2 changes: 1 addition & 1 deletion cogs/shorten.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self, short_code):

@app_commands.command(
name="shorten",
description="Shorten a Long URL βœ‚οΈ",
description="Shorten a Long URL 🀏🏻",
)
@app_commands.describe(
url="The URL to shorten",
Expand Down
38 changes: 31 additions & 7 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,10 @@ async def ping(ctx):
print(e, file=sys.stdout)


@bot.hybrid_command(name="help", description="View the various commands of this bot")
@bot.hybrid_command(
name="help",
description="View the various commands of this bot πŸ“ƒ"
)
async def help(ctx):
user = bot.get_user(1202738385194717205)
profilePicture = user.avatar.url
Expand All @@ -178,6 +181,7 @@ async def help(ctx):
title="SpooBot Commands",
description="Here is the list of the available commands:",
color=discord.Color.blurple(),
timestamp=ctx.message.created_at,
)

embed.set_thumbnail(url=profilePicture)
Expand All @@ -200,13 +204,14 @@ async def help(ctx):

@bot.hybrid_command(
name="invite",
description="Get the invite link for the bot",
description="Get the invite link for the bot πŸ’Œ",
)
async def invite(ctx):
embed = discord.Embed(
title="Invite SpooBot to your server!",
description="Click [here](https://discord.com/api/oauth2/authorize?client_id=1202738385194717205&permissions=9242837113920&scope=bot) to invite SpooBot to your server!",
color=discord.Color.orange(),
timestamp=ctx.message.created_at,
)

try:
Expand All @@ -225,18 +230,35 @@ async def invite(ctx):

@bot.hybrid_command(
name="bot-stats",
description="View the stats of the bot",
description="View the stats of the bot πŸ‘€",
)
async def stats(ctx):
global start_time

current_time = datetime.datetime.utcnow()
delta = current_time - start_time

hours, remainder = divmod(int(delta.total_seconds()), 3600)
minutes, seconds = divmod(remainder, 60)

embed = discord.Embed(
title="SpooBot Stats",
description="Here are the stats of the bot:",
color=discord.Color.og_blurple(),
timestamp=ctx.message.created_at,
)

embed.add_field(name="Servers", value=f"```{len(bot.guilds)}```", inline=True)
embed.add_field(name="Users", value=f"```{len(bot.users)}```", inline=True)

embed.add_field(
name="Uptime",
value=f"```{hours} hours {minutes} minutes {seconds} seconds```",
inline=False,
)

embed.add_field(name="Servers", value=f"```{len(bot.guilds)}```", inline=False)
embed.add_field(name="Users", value=f"```{len(bot.users)}```", inline=False)
embed.add_field(name="Commands", value=f"```{len(commands_)}```", inline=False)
embed.add_field(name="Command Prefix", value=f"``` $ ```", inline=True)
embed.add_field(name="Total Commands", value=f"```{len(commands_)}```", inline=True)

try:
embed.set_footer(
Expand All @@ -254,13 +276,14 @@ async def stats(ctx):

@bot.hybrid_command(
name="support",
description="Join the support server for the bot",
description="Join the Support Server of the bot πŸ› οΈ",
)
async def support(ctx):
embed = discord.Embed(
title="Join the SpooBot Support Server!",
description="Click https://spoo.me/discord to join the support server for SpooBot!",
color=discord.Color.gold(),
timestamp=ctx.message.created_at,
)

embed.set_thumbnail(
Expand Down Expand Up @@ -291,6 +314,7 @@ async def about(ctx):
description="```SpooBot is a URL shortener bot that makes your URLs spoo-tacular! πŸŽ‰ It is a bot that saves you time and hassle by shortening URLs for you, so you can focus on more important things! 😎\nBut wait, there's more! SpooBot also lets you view all your URL statistics from this bot, so you can track how many clicks, views, and visits your URLs get! πŸ“ˆ\nSpooBot is the ultimate URL shortener bot that you need in your life! 😍```",
color=discord.Color.greyple(),
url="https://spoo.me",
timestamp=ctx.message.created_at,
)

embed.add_field(
Expand Down
20 changes: 10 additions & 10 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"https://media2.giphy.com/media/QBd2kLB5qDmysEXre9/giphy.gif?cid=ecf05e47ha6xwa7rq38dcst49nefabwwrods631hvz67ptfg&ep=v1_gifs_search&rid=giphy.gif&ct=g",
"https://media2.giphy.com/media/ZgqJGwh2tLj5C/giphy.gif?cid=ecf05e47gflyso481izbdcrw7y8okfkgdxgc7zoh34q9rxim&ep=v1_gifs_search&rid=giphy.gif&ct=g",
"https://media0.giphy.com/media/EWhLjxjiqdZjW/giphy.gif?cid=ecf05e473fifxe2bg4act0zq73nkyjw0h69fxi52t8jt37lf&ep=v1_gifs_search&rid=giphy.gif&ct=g",
"https://media2.giphy.com/media/26BRuo6sLetdllPAQ/200w.webp",
"https://media4.giphy.com/media/tXL4FHPSnVJ0A/200w.webp",
"https://i.giphy.com/26BRuo6sLetdllPAQ.webp",
"https://i.giphy.com/tXL4FHPSnVJ0A.gif",
]

welcome_gifs = [
Expand All @@ -31,18 +31,18 @@
commands_ = {
"</shorten:1202754338272051252> 🀏🏻 - With this command you can shorten your long urls.": """**Parameters:**
- **url** - The url you want to shorten 🌐
- **alias** - The custom alias you want to use for the url (optional) πŸ†”
- **password** - The password you want to use for the url (optional) πŸ”‘
- **max_clicks** - The maximum number of clicks you want to allow for the url (optional) πŸ–±οΈ""",
- **alias** - The custom alias you want to use for the url πŸ†”
- **password** - The password you want to use for the url πŸ”‘
- **max_clicks** - The maximum number of clicks you want to allow for the url πŸ–±οΈ""",
"</emojify:1202760315247403109> πŸ˜‰ - With this command you can generate a short emoji link for your long boring urls.": """**Parameters:**
- **url** - The url you want to shorten 🌐
- **emojies** - The custom emojies you want to use for the url (optional) 😎
- **password** - The password you want to use for the url (optional) πŸ”‘
- **max_clicks** - The maximum number of clicks you want to allow for the url (optional) πŸ–±οΈ""",
- **emojies** - The custom emojies you want to use for the url 😎
- **password** - The password you want to use for the url πŸ”‘
- **max_clicks** - The maximum number of clicks you want to allow for the url πŸ–±οΈ""",
"</stats:1202895069628203048> πŸ“Š - With this command you can generate detailed statistical insights and charts of your shortened urls": """**Parameters:**
- **short_code** - The short code of the url you want to get the stats for πŸ”’
- **password** - The password of the url, if the url was password-protected (optional) πŸ”‘""",
"</get-code:1203726115835875348> πŸ§‘πŸ»β€πŸ’» - With this command you can get the code to use the spoo.me's official API in your own preferred language": """**Parameters:**
- **password** - The password of the url, if the url was password-protected πŸ”‘""",
"</get-code:1203775482903134219> πŸ§‘πŸ»β€πŸ’» - With this command you can get the code to use the spoo.me's official API in your own preferred language": """**Parameters:**
- **language** - The language you want to get the code for. Available languages are:
- All of the parameters as in the /shorten command""",
"</bot-stats:1203422993275949056> πŸ€–": "With this command you can get detailed information about the bot and the developer",
Expand Down

0 comments on commit 9eda930

Please sign in to comment.