Skip to content

Commit 71ccea3

Browse files
committed
codebase+hotfix: remove unused github.py import + fix config channel limit embed
1 parent 399562d commit 71ccea3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cogs/ecosystem/config.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,12 @@ async def feed_channel_command(self, ctx: GitBotContext, channel) -> None:
152152
if guild:
153153
feed: dict = guild.get('feed', {})
154154
if len(feed) >= 5:
155-
embed_limit_reached: discord.Embed = discord.Embed(
155+
embed_limit_reached: GitBotEmbed = GitBotEmbed(
156156
color=self.bot.mgr.c.discord.yellow,
157-
title=ctx.l.config.feed.channel.embeds.channel_limit_reached_embed.title,
158-
description=ctx.l.config.feed.embeds.channel.channel_limit_reached_embed.description
157+
title=ctx.l.config.feed.channel.channel_limit_reached_embed.title,
158+
description=ctx.l.config.feed.channel.channel_limit_reached_embed.description
159159
)
160-
embed_limit_reached.set_footer(text=ctx.l.config.feed.channel.embeds.channel_limit_reached_embed.footer,
160+
embed_limit_reached.set_footer(text=ctx.l.config.feed.channel.channel_limit_reached_embed.footer,
161161
icon_url=self.bot.user.avatar.url)
162162
await ctx.send(embed=embed_limit_reached)
163163
return

lib/api/github/github.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import functools
1414
import inspect
1515
import gidgethub.aiohttp as gh
16-
from typing import Optional, Callable, Any, Literal, TYPE_CHECKING, LiteralString
16+
from typing import Optional, Callable, Any, Literal, TYPE_CHECKING
1717
from gidgethub import BadRequest, QueryError
1818
import datetime
1919
from lib.structs import DirProxy, TypedCache, CacheSchema, DictProxy, SnakeCaseDictProxy

0 commit comments

Comments
 (0)