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:
parent
fd5dfbb750
commit
9dbfb66119
14
cogs/core.py
14
cogs/core.py
|
@ -6,6 +6,7 @@ import urllib.parse
|
||||||
import urllib.request
|
import urllib.request
|
||||||
import json
|
import json
|
||||||
import random
|
import random
|
||||||
|
import discord
|
||||||
|
|
||||||
|
|
||||||
class Core:
|
class Core:
|
||||||
|
@ -14,6 +15,19 @@ class Core:
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
|
|
||||||
@commands.command()
|
@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):
|
async def joke(self):
|
||||||
"""Prints a random riddle"""
|
"""Prints a random riddle"""
|
||||||
fortuneCommand = "/usr/bin/fortune riddles"
|
fortuneCommand = "/usr/bin/fortune riddles"
|
||||||
|
|
|
@ -113,7 +113,7 @@ class Interaction:
|
||||||
await self.bot.say("{0} has chickened out! {1} wins by default!".format(battleP2.mention, battleP1.mention))
|
await self.bot.say("{0} has chickened out! {1} wins by default!".format(battleP2.mention, battleP1.mention))
|
||||||
updateBattleRecords(battleP1, battleP2)
|
updateBattleRecords(battleP1, battleP2)
|
||||||
battlingOff()
|
battlingOff()
|
||||||
|
|
||||||
@commands.command(pass_context=True, no_pm=True)
|
@commands.command(pass_context=True, no_pm=True)
|
||||||
async def boop(self, ctx, boopee: discord.Member):
|
async def boop(self, ctx, boopee: discord.Member):
|
||||||
"""Boops the mentioned person"""
|
"""Boops the mentioned person"""
|
||||||
|
|
|
@ -13,7 +13,7 @@ class Mod:
|
||||||
@commands.command(pass_context=True)
|
@commands.command(pass_context=True)
|
||||||
@checks.isMod()
|
@checks.isMod()
|
||||||
async def nsfw(self, ctx):
|
async def nsfw(self, ctx):
|
||||||
"""Registers this channel as a 'nsfw' channel''"""
|
"""Registers this channel as a 'nsfw' channel"""
|
||||||
cursor = config.getCursor()
|
cursor = config.getCursor()
|
||||||
cursor.execute('use {}'.format(config.db_default))
|
cursor.execute('use {}'.format(config.db_default))
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue