diff options
author | Arjun Satarkar <me@arjunsatarkar.net> | 2024-03-11 05:48:34 +0000 |
---|---|---|
committer | Arjun Satarkar <me@arjunsatarkar.net> | 2024-03-11 05:52:08 +0000 |
commit | 5271c454b0ba1a11064ef3d7850fedac2d7ccdaa (patch) | |
tree | fd3857b08bffcdcac009eb0c5fb91bf672515998 | |
parent | 60a4ce97a159100b1a0959f63b5d15fd23c7c2e9 (diff) | |
download | aps-cogs-5271c454b0ba1a11064ef3d7850fedac2d7ccdaa.tar aps-cogs-5271c454b0ba1a11064ef3d7850fedac2d7ccdaa.tar.gz aps-cogs-5271c454b0ba1a11064ef3d7850fedac2d7ccdaa.zip |
rename starboard to simple_starboard to avoid collision
-rw-r--r-- | simplestarboard/__init__.py | 5 | ||||
-rw-r--r-- | simplestarboard/info.json (renamed from starboard/info.json) | 0 | ||||
-rw-r--r-- | simplestarboard/starboard.py (renamed from starboard/starboard.py) | 10 | ||||
-rw-r--r-- | starboard/__init__.py | 5 |
4 files changed, 10 insertions, 10 deletions
diff --git a/simplestarboard/__init__.py b/simplestarboard/__init__.py new file mode 100644 index 0000000..26d4ba8 --- /dev/null +++ b/simplestarboard/__init__.py @@ -0,0 +1,5 @@ +from .starboard import SimpleStarboard + + +async def setup(bot): + await bot.add_cog(SimpleStarboard(bot)) diff --git a/starboard/info.json b/simplestarboard/info.json index af11ade..af11ade 100644 --- a/starboard/info.json +++ b/simplestarboard/info.json diff --git a/starboard/starboard.py b/simplestarboard/starboard.py index 609257c..66040d7 100644 --- a/starboard/starboard.py +++ b/simplestarboard/starboard.py @@ -5,7 +5,7 @@ from redbot.core import Config from redbot.core import commands -class Starboard(commands.Cog): +class SimpleStarboard(commands.Cog): def __init__(self, bot): self.bot = bot self.config = Config.get_conf( @@ -22,10 +22,10 @@ class Starboard(commands.Cog): return f"<:{emoji.name}:{emoji.id}>" @commands.group() - async def starboard(self, _ctx): + async def simplestarboard(self, _ctx): pass - @starboard.command() + @simplestarboard.command() @commands.admin_or_permissions(manage_guild=True) async def add(self, ctx, name: str, channel: discord.TextChannel, threshold: int): if threshold < 1: @@ -98,7 +98,7 @@ class Starboard(commands.Cog): confirmation_text, allowed_mentions=discord.AllowedMentions.none() ) - @starboard.command() + @simplestarboard.command() @commands.admin_or_permissions(manage_guild=True) async def remove(self, ctx, name: str): async with self.config.guild(ctx.guild).starboards() as starboards: @@ -111,7 +111,7 @@ class Starboard(commands.Cog): else: await ctx.reply("Removed that starboard.") - @starboard.command() + @simplestarboard.command() async def list(self, ctx): starboards = await self.config.guild(ctx.guild).starboards() list_text = "Name, Channel, Threshold, Reactions" diff --git a/starboard/__init__.py b/starboard/__init__.py deleted file mode 100644 index eeb3d75..0000000 --- a/starboard/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -from .starboard import Starboard - - -async def setup(bot): - await bot.add_cog(Starboard(bot)) |