Refactor command definitions across multiple cogs to replace hybrid commands with regular commands for consistency. This change enhances clarity and standardizes command handling throughout the bot.
This commit is contained in:
@@ -208,7 +208,7 @@ class General(commands.Cog):
|
||||
await msg.add_reaction(CROSS)
|
||||
|
||||
|
||||
@commands.hybrid_command(name="users", help=f"checks total users of {BotName}.")
|
||||
@commands.command(name="users", help=f"checks total users of {BotName}.")
|
||||
@blacklist_check()
|
||||
@ignore_check()
|
||||
@commands.cooldown(1, 3, commands.BucketType.user)
|
||||
@@ -251,7 +251,7 @@ class General(commands.Cog):
|
||||
except:
|
||||
pass
|
||||
|
||||
@commands.hybrid_command(name="rickroll",
|
||||
@commands.command(name="rickroll",
|
||||
help="Detects if provided url is a rick-roll",
|
||||
usage="Rickroll <url>")
|
||||
@blacklist_check()
|
||||
@@ -271,7 +271,7 @@ class General(commands.Cog):
|
||||
title = "Rick Roll {} in webpage".format("was found" if rickRoll else "was not found")
|
||||
await ctx.reply(view=CV2(title, "🎵 Never gonna give you up..." if rickRoll else "✅ Safe to click!"), mention_author=True)
|
||||
|
||||
@commands.hybrid_command(name="hash",
|
||||
@commands.command(name="hash",
|
||||
help="Hashes provided text with provided algorithm")
|
||||
@blacklist_check()
|
||||
@ignore_check()
|
||||
@@ -297,7 +297,7 @@ class General(commands.Cog):
|
||||
hash_lines = f"**{algorithm}:** `{algos[algorithm.lower()]}`"
|
||||
await ctx.reply(view=CV2(f"Hashed \"{message}\"", hash_lines), mention_author=True)
|
||||
|
||||
@commands.hybrid_command(
|
||||
@commands.command(
|
||||
name="invite",
|
||||
aliases=['invite-bot'],
|
||||
description="Get Support & Bot invite link!"
|
||||
|
||||
Reference in New Issue
Block a user