Permalink
Browse files

added readme and shit

1 parent 0d6643d commit 5b015d1a9c1e94b62534208ea39158ac39e2df71 @OkBenny committed Feb 17, 2017
Showing with 19 additions and 3 deletions.
  1. +3 −0 README.MD
  2. +15 −2 bot.py
  3. +1 −1 main.py
View
@@ -0,0 +1,3 @@
+discord bot auth calculator
+
+https://discordapi.com/permissions.html#8
View
@@ -23,6 +23,19 @@
async def joined(member : discord.Member):
"""Says when a member joined."""
await bot.say('{0.name} joined in {0.joined_at}'.format(member))
+
+@bot.group(pass_context=True)
+async def cool(ctx):
+ """Says if a user is cool.
+ In reality this just checks if a subcommand is being invoked.
+ """
+ if ctx.invoked_subcommand is None:
+ await bot.say('No, {0.subcommand_passed} is not cool'.format(ctx))
+
+@cool.command(name='bot')
+async def _bot():
+ """Is the bot cool?"""
+ await bot.say('Yes, the bot is cool.')
-##bot.run('MjgxOTQ3MDc0ODMwOTI1ODM1.C4fXNQ.OMvnwA7m90ocAviwHHk5ikLNUCw') ##the-bot-abides
-bot.run('MjgwMzA5MjI0MjQyNjc1NzEz.C4HidA.ywZOeruLJtn5CDbrwLOebi_-1RI') ##mongolion-grill-bot
+bot.run('MjgxOTQ3MDc0ODMwOTI1ODM1.C4fXNQ.OMvnwA7m90ocAviwHHk5ikLNUCw') ##the-bot-abides
+##bot.run('MjgwMzA5MjI0MjQyNjc1NzEz.C4HidA.ywZOeruLJtn5CDbrwLOebi_-1RI') ##mongolion-grill-bot
View
@@ -19,7 +19,7 @@
while not client.is_closed:
counter += 1
await client.send_message(channel, counter)
- await asyncio.sleep(10) # task runs every 60 seconds
+ await asyncio.sleep(120) # task runs every 60 seconds
@client.event
async def on_message(message):

0 comments on commit 5b015d1

Please sign in to comment.