Skip to content

Commit

Permalink
[ThreadOpener] fix stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
japandotorg committed Oct 13, 2023
1 parent b801328 commit 749d2a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions threadopener/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ async def _archive(self, ctx: commands.Context, amount: Literal[0, 60, 1440, 432
await self.config.guild(ctx.guild).auto_archive_duration.set(amount) # type: ignore
await ctx.send(f"Auto archive duration is now {amount}.")

@_thread_opener.command(name="slowmode") # type: ignore
@_thread_opener.command(name="slowmode", aliases=["slow"]) # type: ignore
async def _slowmode(self, ctx: commands.Context, amount: commands.Range[int, 0, 21600]):
"""
Change the slowmode of threads.
Expand Down Expand Up @@ -135,7 +135,7 @@ async def _show_settings(self, ctx: commands.Context):
if active_channels:
embed.add_field(
name="Active Channels",
value=humanize_list(active_channels),
value=humanize_list(active_channels)[:2000],
inline=False,
)
await ctx.send(embed=embed)
6 changes: 3 additions & 3 deletions threadopener/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class ThreadOpener(
metaclass=CompositeMetaClass,
):
"""
A cog to open continuouS threads to messages in a channel.
A cog to open continuous threads to messages in a channel.
"""

__author__: Final[List[str]] = ["inthedark.org"]
Expand All @@ -56,11 +56,11 @@ def __init__(self, bot: Red) -> None:
identifier=69_420_666,
force_registration=True,
)
default_guilds: Dict[str, Optional[Union[List[int], bool]]] = {
default_guilds: Dict[str, Optional[Union[List[int], bool, int]]] = {
"toggle": False,
"channels": [],
"slowmode_delay": None,
"auto_archive_duration": None,
"auto_archive_duration": 10080,
}
self.config.register_guild(**default_guilds)

Expand Down

0 comments on commit 749d2a7

Please sign in to comment.