1
0
Fork 0
mirror of synced 2024-05-19 20:12:30 +12:00

Changed a description n mod, added a join command to provide a link to add the bot to another server

This commit is contained in:
Phxntxm 2016-07-09 13:27:14 -05:00
parent fd5dfbb750
commit 9dbfb66119
3 changed files with 16 additions and 2 deletions

View file

@ -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"

View file

@ -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"""

View file

@ -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: