Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
3nws committed Jan 11, 2024
1 parent f1fa863 commit 6547249
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 19 deletions.
14 changes: 6 additions & 8 deletions app/Bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ async def send_stats(self, client):

async def setup_hook(self) -> None:
self.session = aiohttp.ClientSession()

self.add_view(PersistentViewHelp("0", self))

await self.load_cogs()
Expand All @@ -139,7 +139,7 @@ async def close(self):
for view in self.persistent_views:
await view.on_timeout()
await super().close()


class PersistentViewHelp(View):
def __init__(self, mode: str, bot: Bot):
Expand Down Expand Up @@ -286,15 +286,13 @@ async def send_info(self, interaction: discord.Interaction):
for a in l:
if isinstance(a, (list, tuple, set)):
try:
if isinstance(a[-1], (discord.User, discord.Member)): # type: ignore
temp.append(a[-1].name) # type: ignore
if isinstance(a[-1], (discord.User, discord.Member)): # type: ignore
temp.append(a[-1].name) # type: ignore
else:
temp.append(a[-1]) # type: ignore
temp.append(a[-1]) # type: ignore
except IndexError:
pass
self.app_command_invokes_namespaces.append(
(interaction.command.name, temp)
)
self.app_command_invokes_namespaces.append((interaction.command.name, temp))
if self.app_commands_invoked % 10 == 0:
user = interaction.client.get_user(442715989310832650)
await user.send(
Expand Down
1 change: 0 additions & 1 deletion app/classes/Grand_Blue.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@


class Grand_Blue(Scrape_Series):

__slots__ = ("url", "bot")

def __init__(self, url: str, bot: Bot):
Expand Down
1 change: 0 additions & 1 deletion app/classes/Guya_moe.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@


class Guya_moe(Scrape_Series):

__slots__ = ("url", "bot")

def __init__(self, url: str, bot: Bot):
Expand Down
1 change: 0 additions & 1 deletion app/classes/MangaDex.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


class Chapter:

__slots__ = (
"id",
"title",
Expand Down
1 change: 0 additions & 1 deletion app/classes/OsuAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@


class OsuAPI:

__slots__ = (
"bot",
"base_url",
Expand Down
1 change: 0 additions & 1 deletion app/classes/Re_zero.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@


class Re_zero(Scrape_Series):

__slots__ = ("url", "bot")

def __init__(self, url: str, bot: Bot):
Expand Down
1 change: 0 additions & 1 deletion app/classes/Views/FilterView.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ async def inner(self: "FilterView", choice: int) -> None:


class FilterView(ui.View):

__slots__ = (
"i",
"embed",
Expand Down
1 change: 0 additions & 1 deletion app/classes/Views/Pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ async def format_page(self, menu, entries): # type: ignore


class MangaReader(ui.View, menus.MenuPages):

__slots__ = (
"_source",
"current_page",
Expand Down
1 change: 0 additions & 1 deletion app/classes/Views/Pick.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@


class PickView(ui.View):

__slots__ = (
"i",
"mangas",
Expand Down
1 change: 0 additions & 1 deletion app/cogs/DB.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@


class DB(commands.Cog):

_IMGUR: ClassVar[Optional[str]] = os.getenv("IMGUR_ID", None)

def __init__(self, bot: Bot):
Expand Down
1 change: 0 additions & 1 deletion app/cogs/Gif.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@


class Gif(commands.Cog):

_tenor_api_key: ClassVar[Optional[str]] = os.getenv("TENOR_API_KEY", None)

def __init__(self, bot: Bot):
Expand Down
1 change: 0 additions & 1 deletion app/cogs/Util.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@


class Util(commands.Cog):

_saucenao_api_key: ClassVar[Optional[str]] = os.getenv("SAUCENAO_API_KEY", None)
_token: ClassVar[Optional[str]] = os.getenv("TOKEN_DEBUG", None)

Expand Down

0 comments on commit 6547249

Please sign in to comment.