Skip to content

Commit

Permalink
Test stuff cog
Browse files Browse the repository at this point in the history
  • Loading branch information
yamikaitou committed Feb 5, 2018
1 parent e3940b0 commit 5e0512c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
7 changes: 7 additions & 0 deletions yamik/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"AUTHOR" : "YamiKaitou",
"NAME" : "YamiK",
"SHORT" : "Simple test stuff",
"DESCRIPTION" : "Simple test stuff",
"TAGS": []
}
18 changes: 18 additions & 0 deletions yamik/yamik.py
Original file line number Diff line number Diff line change
@@ -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))

0 comments on commit 5e0512c

Please sign in to comment.