aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--simplestarboard/__init__.py5
-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__.py5
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))