From 3f25d1121f6c5ba3bda426e58646c0777487657f Mon Sep 17 00:00:00 2001 From: Bobloy Date: Thu, 10 May 2018 15:18:28 -0400 Subject: [PATCH] CogLint initial commit Signed-off-by: Bobloy --- coglint/__init__.py | 5 +++++ coglint/coglint.py | 26 ++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 coglint/__init__.py create mode 100644 coglint/coglint.py diff --git a/coglint/__init__.py b/coglint/__init__.py new file mode 100644 index 0000000..87f61bb --- /dev/null +++ b/coglint/__init__.py @@ -0,0 +1,5 @@ +from .coglint import CogLint + + +def setup(bot): + bot.add_cog(CogLint(bot)) diff --git a/coglint/coglint.py b/coglint/coglint.py new file mode 100644 index 0000000..20e2075 --- /dev/null +++ b/coglint/coglint.py @@ -0,0 +1,26 @@ +import discord +from discord.ext import commands +from redbot.core import Config, checks, RedContext + +from redbot.core.bot import Red + +import pylint + + +class CogLint: + """ + V3 Cog Template + """ + + def __init__(self, bot: Red): + self.bot = bot + self.config = Config.get_conf(self, identifier=9811198108111121, force_registration=True) + default_global = {} + default_guild = {} + + self.config.register_global(**default_global) + self.config.register_guild(**default_guild) + + @commands.command() + async def lint(self, ctx: RedContext): + await ctx.send("Hello World")