Skip to content

Commit

Permalink
+ [ 4 files changed ] - Added alias emote to emoji command
Browse files Browse the repository at this point in the history
* Replace list with tuple
  • Loading branch information
null2264 committed Aug 22, 2021
1 parent 49a8dbe commit 30feee6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# v3.2

## 3.2.9

- [**Improved**] Re-added alias `emote` to `emoji` commands

## 3.2.8

- [**Fixed**] Fixed Moderation commands' checks not working properly
Expand Down
2 changes: 1 addition & 1 deletion core/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class ziBot(commands.Bot):

# --- NOTE: Information about the bot
author: str = getattr(config, "author", "ZiRO2264#9999")
version: str = "`3.2.8` - `overhaul`"
version: str = "`3.2.9` - `overhaul`"
links: Dict[str, str] = getattr(
config,
"links",
Expand Down
14 changes: 7 additions & 7 deletions exts/info/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __init__(self, bot):
)

@commands.command(
aliases=["av", "userpfp", "pfp"], brief="Get member's avatar image"
aliases=("av", "userpfp", "pfp"), brief="Get member's avatar image"
)
@commands.cooldown(1, 5, commands.BucketType.user)
async def avatar(self, ctx, _user: MemberOrUser = None):
Expand Down Expand Up @@ -82,7 +82,7 @@ async def avatar(self, ctx, _user: MemberOrUser = None):
await ctx.try_reply(embed=e)

@commands.command(
aliases=["w"],
aliases=("w",),
brief="Get current weather for specific city",
extras=dict(example=("weather Palembang", "w London")),
)
Expand Down Expand Up @@ -117,7 +117,7 @@ async def weather(self, ctx, *, city):
await ctx.try_reply(embed=e)

@commands.command(
aliases=["clr", "color"],
aliases=("clr", "color"),
brief="Get colour information from hex value",
description=(
"Get colour information from hex value\n\nCan use either `0x` or "
Expand Down Expand Up @@ -153,15 +153,15 @@ async def colour(self, ctx, value: str):
e.add_field(name="RGB", value=", ".join([str(x) for x in RGB]))
return await ctx.try_reply(file=f, embed=e)

@commands.command(aliases=["lvl", "rank"], hidden=True, brief="Level")
@commands.command(aliases=("lvl", "rank"), hidden=True, brief="Level")
@commands.cooldown(1, 5, commands.BucketType.user)
async def level(self, ctx):
return await ctx.try_reply(
"https://tenor.com/view/stop-it-get-some-help-gif-7929301"
)

@commands.group(
aliases=["em"],
aliases=("em", "emote"),
brief="Get an emoji's information",
description=(
"Get an emoji's information\n\nWill execute `emoji info` by "
Expand All @@ -183,7 +183,7 @@ async def emoji(self, ctx, emoji: Union[discord.Emoji, discord.PartialEmoji, str

@emoji.command(
name="info",
aliases=["?"],
aliases=("?",),
brief="Get an emoji's information",
description="Get an emoji's information\n\nSupports Unicode/built-in emojis",
extras=dict(
Expand Down Expand Up @@ -319,7 +319,7 @@ async def emojiAdd(
return await ctx.try_reply(embed=e)

@commands.command(
aliases=["jsh"],
aliases=("jsh",),
brief="Get japanese word",
description="Get japanese word from english/japanese/romaji/text",
extras=dict(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "Z3R0"
version = "3.2.8"
version = "3.2.9"
description = "A multi-purpose open source discord bot"
authors = ["null2264"]
license = "MPL-2.0"
Expand Down

0 comments on commit 30feee6

Please sign in to comment.