From 5e0512cf136f50c26bc0664d7f7a77e7f0bdf96b Mon Sep 17 00:00:00 2001 From: Ryan L Date: Mon, 5 Feb 2018 23:37:47 +0000 Subject: [PATCH] Test stuff cog --- yamik/info.json | 7 +++++++ yamik/yamik.py | 18 ++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 yamik/info.json create mode 100644 yamik/yamik.py diff --git a/yamik/info.json b/yamik/info.json new file mode 100644 index 0000000..86fe63e --- /dev/null +++ b/yamik/info.json @@ -0,0 +1,7 @@ +{ + "AUTHOR" : "YamiKaitou", + "NAME" : "YamiK", + "SHORT" : "Simple test stuff", + "DESCRIPTION" : "Simple test stuff", + "TAGS": [] +} \ No newline at end of file diff --git a/yamik/yamik.py b/yamik/yamik.py new file mode 100644 index 0000000..da5fdca --- /dev/null +++ b/yamik/yamik.py @@ -0,0 +1,18 @@ +import discord +from discord.ext import commands + +class Yamik: + """My custom cog that does stuff!""" + + def __init__(self, bot): + self.bot = bot + + @commands.command() + async def mycom(self, ctx): + """This does stuff!""" + + #Your code will go here + await self.bot.say(ctx.message.server.roles) + +def setup(bot): + bot.add_cog(Mycog(bot)) \ No newline at end of file