From 52a18a5b5242392b149115255db979f704d3a58d Mon Sep 17 00:00:00 2001 From: bobloy Date: Mon, 27 Jul 2020 13:40:55 -0400 Subject: [PATCH] Need to use https://github.com/sherlock-project/sherlock somehow, will figure it out later --- sherlock/__init__.py | 5 +++++ sherlock/sherlock.py | 23 +++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 sherlock/__init__.py create mode 100644 sherlock/sherlock.py diff --git a/sherlock/__init__.py b/sherlock/__init__.py new file mode 100644 index 0000000..c9b13b1 --- /dev/null +++ b/sherlock/__init__.py @@ -0,0 +1,5 @@ +from .sherlock import Sherlock + + +def setup(bot): + bot.add_cog(Sherlock(bot)) \ No newline at end of file diff --git a/sherlock/sherlock.py b/sherlock/sherlock.py new file mode 100644 index 0000000..c76d894 --- /dev/null +++ b/sherlock/sherlock.py @@ -0,0 +1,23 @@ +from redbot.core import Config, commands +from redbot.core.bot import Red + + +class Sherlock(commands.Cog): + """ + Cog Description + + Less important information about the cog + """ + + def __init__(self, bot: Red): + super().__init__() + self.bot = bot + self.config = Config.get_conf(self, identifier=0, force_registration=True) # TODO: Identifier + + default_guild = {} + + self.config.register_guild(**default_guild) + + @commands.command() + async def sherlock(self, ctx: commands.Context): + await ctx.send("Hello world")