Changed the required permissions to be send_messages instead of none
This commit is contained in:
parent
084111e438
commit
ec191c06fa
|
@ -63,7 +63,7 @@ class Mod:
|
|||
await self.bot.delete_message(ctx.message)
|
||||
|
||||
@commands.group(pass_context=True, invoke_without_command=True, no_pm=True)
|
||||
@checks.customPermsOrRole("none")
|
||||
@checks.customPermsOrRole("send_messages")
|
||||
async def perms(self, ctx, *command: str):
|
||||
"""This command can be used to print the current allowed permissions on a specific command
|
||||
This supports groups as well as subcommands; pass no argument to print a list of available permissions"""
|
||||
|
|
|
@ -24,7 +24,7 @@ class Overwatch:
|
|||
pass
|
||||
|
||||
@ow.command(name="stats", pass_context=True, no_pm=True)
|
||||
@checks.customPermsOrRole("none")
|
||||
@checks.customPermsOrRole("send_messages")
|
||||
async def ow_stats(self, ctx, user: discord.Member=None, hero: str=""):
|
||||
"""Command used to lookup information on your own user, or on another's
|
||||
When adding your battletag, it is quite picky, use the exact format user#xxxx
|
||||
|
@ -73,7 +73,7 @@ class Overwatch:
|
|||
.format(user.name, hero.title(), fmt.title().replace("_", " ")))
|
||||
|
||||
@ow.command(pass_context=True, name="add", no_pm=True)
|
||||
@checks.customPermsOrRole("none")
|
||||
@checks.customPermsOrRole("send_messages")
|
||||
async def add(self, ctx, bt: str):
|
||||
"""Saves your battletag for looking up information"""
|
||||
bt = bt.replace("#", "-")
|
||||
|
@ -95,7 +95,7 @@ class Overwatch:
|
|||
await self.bot.say("I was unable to save this data")
|
||||
|
||||
@ow.command(pass_context=True, name="delete", aliases=['remove'], no_pm=True)
|
||||
@checks.customPermsOrRole("none")
|
||||
@checks.customPermsOrRole("send_messages")
|
||||
async def delete(self, ctx):
|
||||
"""Removes your battletag from the records"""
|
||||
result = config.getContent('overwatch')
|
||||
|
|
|
@ -96,7 +96,7 @@ class Music:
|
|||
pass
|
||||
|
||||
@commands.command(no_pm=True)
|
||||
@checks.customPermsOrRole("none")
|
||||
@checks.customPermsOrRole("send_messages")
|
||||
async def join(self, *, channel: discord.Channel):
|
||||
"""Joins a voice channel."""
|
||||
try:
|
||||
|
@ -112,7 +112,7 @@ class Music:
|
|||
await self.bot.say('Ready to play audio in ' + channel.name)
|
||||
|
||||
@commands.command(pass_context=True, no_pm=True)
|
||||
@checks.customPermsOrRole("none")
|
||||
@checks.customPermsOrRole("send_messages")
|
||||
async def summon(self, ctx):
|
||||
"""Summons the bot to join your voice channel."""
|
||||
summoned_channel = ctx.message.author.voice_channel
|
||||
|
@ -128,7 +128,7 @@ class Music:
|
|||
return True
|
||||
|
||||
@commands.command(pass_context=True, no_pm=True)
|
||||
@checks.customPermsOrRole("none")
|
||||
@checks.customPermsOrRole("send_messages")
|
||||
async def play(self, ctx, *, song: str):
|
||||
"""Plays a song.
|
||||
If there is a song currently in the queue, then it is
|
||||
|
@ -200,14 +200,14 @@ class Music:
|
|||
pass
|
||||
|
||||
@commands.command(pass_context=True, no_pm=True)
|
||||
@checks.customPermsOrRole("none")
|
||||
@checks.customPermsOrRole("send_messages")
|
||||
async def queuelength(self, ctx):
|
||||
"""Prints the length of the queue"""
|
||||
await self.bot.say("There are a total of {} songs in the queue"
|
||||
.format(str(self.get_voice_state(ctx.message.server).songs.qsize())))
|
||||
|
||||
@commands.command(pass_context=True, no_pm=True)
|
||||
@checks.customPermsOrRole("none")
|
||||
@checks.customPermsOrRole("send_messages")
|
||||
async def skip(self, ctx):
|
||||
"""Vote to skip a song. The song requester can automatically skip.
|
||||
3 skip votes are needed for the song to be skipped.
|
||||
|
@ -246,7 +246,7 @@ class Music:
|
|||
await self.bot.say('Song has just been skipped.')
|
||||
|
||||
@commands.command(pass_context=True, no_pm=True)
|
||||
@checks.customPermsOrRole("none")
|
||||
@checks.customPermsOrRole("send_messages")
|
||||
async def playing(self, ctx):
|
||||
"""Shows info about the currently played song."""
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ class Stats:
|
|||
self.bot = bot
|
||||
|
||||
@commands.command(pass_context=True, no_pm=True)
|
||||
@checks.customPermsOrRole("none")
|
||||
@checks.customPermsOrRole("send_messages")
|
||||
async def mostboops(self, ctx):
|
||||
"""Shows the person you have 'booped' the most, as well as how many times"""
|
||||
boops = config.getContent('boops')
|
||||
|
@ -33,7 +33,7 @@ class Stats:
|
|||
ctx.message.author.mention, member.mention, most_boops))
|
||||
|
||||
@commands.command(pass_context=True, no_pm=True)
|
||||
@checks.customPermsOrRole("none")
|
||||
@checks.customPermsOrRole("send_messages")
|
||||
async def listboops(self, ctx):
|
||||
"""Lists all the users you have booped and the amount of times"""
|
||||
members = ctx.message.server.members
|
||||
|
@ -49,7 +49,7 @@ class Stats:
|
|||
await self.bot.say("```{}```".format(output))
|
||||
|
||||
@commands.command(pass_context=True, no_pm=True)
|
||||
@checks.customPermsOrRole("none")
|
||||
@checks.customPermsOrRole("send_messages")
|
||||
async def mostwins(self, ctx):
|
||||
"""Prints a 'leaderboard' of everyone in the server's battling record"""
|
||||
members = ctx.message.server.members
|
||||
|
|
|
@ -51,7 +51,7 @@ class Twitch:
|
|||
await asyncio.sleep(30)
|
||||
|
||||
@commands.group(no_pm=True, invoke_without_command=True, pass_context=True)
|
||||
@checks.customPermsOrRole("none")
|
||||
@checks.customPermsOrRole("send_messages")
|
||||
async def twitch(self, ctx, *, member: discord.Member=None):
|
||||
"""Use this command to check the twitch info of a user"""
|
||||
if member is None:
|
||||
|
@ -76,7 +76,7 @@ class Twitch:
|
|||
await self.bot.say("```{}```".format(fmt))
|
||||
|
||||
@twitch.command(name='add', pass_context=True, no_pm=True)
|
||||
@checks.customPermsOrRole("none")
|
||||
@checks.customPermsOrRole("send_messages")
|
||||
async def add_twitch_url(self, ctx, url: str):
|
||||
"""Saves your user's twitch URL"""
|
||||
try:
|
||||
|
@ -107,7 +107,7 @@ class Twitch:
|
|||
await self.bot.say("I was unable to save this data")
|
||||
|
||||
@twitch.command(name='remove', aliases=['delete'], pass_context=True, no_pm=True)
|
||||
@checks.customPermsOrRole("none")
|
||||
@checks.customPermsOrRole("send_messages")
|
||||
async def remove_twitch_url(self, ctx):
|
||||
"""Removes your twitch URL"""
|
||||
twitch = config.getContent('twitch')
|
||||
|
@ -123,13 +123,13 @@ class Twitch:
|
|||
ctx.message.author.mention))
|
||||
|
||||
@twitch.group(pass_context=True, no_pm=True, invoke_without_command=True)
|
||||
@checks.customPermsOrRole("none")
|
||||
@checks.customPermsOrRole("send_messages")
|
||||
async def notify(self, ctx):
|
||||
"""This can be used to turn notifications on or off"""
|
||||
pass
|
||||
|
||||
@notify.command(name='on', aliases=['start,yes'], pass_context=True, no_pm=True)
|
||||
@checks.customPermsOrRole("none")
|
||||
@checks.customPermsOrRole("send_messages")
|
||||
async def notify_on(self, ctx):
|
||||
"""Turns twitch notifications on"""
|
||||
twitch = config.getContent('twitch')
|
||||
|
@ -150,7 +150,7 @@ class Twitch:
|
|||
await self.bot.say("I was unable to save this data")
|
||||
|
||||
@notify.command(name='off', aliases=['stop,no'], pass_context=True, no_pm=True)
|
||||
@checks.customPermsOrRole("none")
|
||||
@checks.customPermsOrRole("send_messages")
|
||||
async def notify_off(self, ctx):
|
||||
"""Turns twitch notifications off"""
|
||||
twitch = config.getContent('twitch')
|
||||
|
|
Loading…
Reference in a new issue