Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Updates to groups #243

Merged
merged 3 commits into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions bot/utils/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,15 +182,6 @@ async def on_command_error(self, ctx: MyContext, error: Exception):
),
ephemeral=True,
)
# Group "twitter" not found.
result = re.search(r"Group \"([^\"]+)\" not found", raw_error)
if result is not None:
return await ctx.send(
await self.bot._(
ctx.channel, "errors.unknown-group", g=result.group(1)
),
ephemeral=True,
)
# Too many text channels
if raw_error == "Too many text channels":
return await ctx.send(
Expand Down Expand Up @@ -236,6 +227,7 @@ async def on_command_error(self, ctx: MyContext, error: Exception):
ephemeral=True,
)
print("errors -", error)
return
elif isinstance(error, commands.MissingRequiredArgument):
await ctx.send(
await self.bot._(ctx.channel, "errors.missing-arg", a=error.param.name),
Expand Down
1 change: 0 additions & 1 deletion langs/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ en:
unknown-role: "Unable to find the role %{r} :confused:"
unknown-server: Unknown server
unknown-user: "Unable to find user %{u} :confused:"
unknown-group: "Unable to find group %{u} :confused:"
general:
stats:
title: "Bot statistics"
Expand Down
1 change: 0 additions & 1 deletion langs/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ fr:
unknown-role: "Impossible de trouver le rôle %{r} :confused:"
unknown-server: Serveur introuvable
unknown-user: "Impossible de trouver l'utilisateur %{u} :confused:"
unknown-group: "Impossible de trouver le groupe %{g} :confused:"
general:
stats:
title: "Statistiques du bot"
Expand Down
Loading
Loading