From 9dbfb66119d3c7a39a986020b4b6385fd50a5f15 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sat, 9 Jul 2016 13:27:14 -0500 Subject: [PATCH] Changed a description n mod, added a join command to provide a link to add the bot to another server --- cogs/core.py | 14 ++++++++++++++ cogs/interaction.py | 2 +- cogs/mod.py | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/cogs/core.py b/cogs/core.py index c5b29cd..0acf818 100644 --- a/cogs/core.py +++ b/cogs/core.py @@ -6,6 +6,7 @@ import urllib.parse import urllib.request import json import random +import discord class Core: @@ -14,6 +15,19 @@ class Core: self.bot = bot @commands.command() + async def join(self) + perms = discord.Permissions.none() + perms.read_messages = True + perms.send_messages = True + perms.manage_roles = True + perms.ban_members = True + perms.kick_members = True + perms.manage_messages = True + perms.embed_links = True + perms.read_message_history = True + perms.attach_files = True + await bot.say("Use this URL to add me to a server that you'd like!\n{}'".format(discord.utils.oauth_url('183748889814237186',perms))) + @commands.command() async def joke(self): """Prints a random riddle""" fortuneCommand = "/usr/bin/fortune riddles" diff --git a/cogs/interaction.py b/cogs/interaction.py index 462ab29..6900039 100644 --- a/cogs/interaction.py +++ b/cogs/interaction.py @@ -113,7 +113,7 @@ class Interaction: await self.bot.say("{0} has chickened out! {1} wins by default!".format(battleP2.mention, battleP1.mention)) updateBattleRecords(battleP1, battleP2) battlingOff() - + @commands.command(pass_context=True, no_pm=True) async def boop(self, ctx, boopee: discord.Member): """Boops the mentioned person""" diff --git a/cogs/mod.py b/cogs/mod.py index 2ca5568..611999b 100644 --- a/cogs/mod.py +++ b/cogs/mod.py @@ -13,7 +13,7 @@ class Mod: @commands.command(pass_context=True) @checks.isMod() async def nsfw(self, ctx): - """Registers this channel as a 'nsfw' channel''""" + """Registers this channel as a 'nsfw' channel""" cursor = config.getCursor() cursor.execute('use {}'.format(config.db_default)) try: