Remove unneeded pass_context calls
This commit is contained in:
parent
45d80bf6b9
commit
a7a8444e4d
|
@ -186,7 +186,7 @@ class Miscallaneous:
|
|||
embed.set_author(name=str(self.bot.owner), icon_url=self.bot.owner.avatar_url)
|
||||
|
||||
# Setup the process statistics
|
||||
name = "Process stats"
|
||||
name = "Process statistics"
|
||||
value = ""
|
||||
|
||||
memory_usage = self.process.memory_full_info().uss / 1024 ** 2
|
||||
|
@ -198,7 +198,7 @@ class Miscallaneous:
|
|||
embed.add_field(name=name, value=value, inline=False)
|
||||
|
||||
# Setup the user and guild statistics
|
||||
name = "User/Guild stats"
|
||||
name = "User/Guild statistics"
|
||||
value = ""
|
||||
|
||||
value += "Channels: {}".format(len(list(self.bot.get_all_channels())))
|
||||
|
|
|
@ -89,7 +89,7 @@ class Overwatch:
|
|||
fmt = "\n".join("{}: {}".format(k, r) for k, r in output_data)
|
||||
await ctx.send("Overwatch stats for {}: ```py\n{}```".format(user.name, fmt))
|
||||
|
||||
@ow.command(pass_context=True, name="add")
|
||||
@ow.command(name="add")
|
||||
@utils.custom_perms(send_messages=True)
|
||||
@utils.check_restricted()
|
||||
async def add(self, ctx, bt: str):
|
||||
|
@ -122,7 +122,7 @@ class Overwatch:
|
|||
self.bot.db.save('overwatch', entry)
|
||||
await ctx.send("I have just saved your battletag {}".format(ctx.message.author.mention))
|
||||
|
||||
@ow.command(pass_context=True, name="delete", aliases=['remove'])
|
||||
@ow.command(name="delete", aliases=['remove'])
|
||||
@utils.custom_perms(send_messages=True)
|
||||
@utils.check_restricted()
|
||||
async def delete(self, ctx):
|
||||
|
|
|
@ -70,7 +70,7 @@ class Polls:
|
|||
if poll:
|
||||
await poll.remove_other_reaction(reaction, user)
|
||||
|
||||
@commands.command(pass_context=True)
|
||||
@commands.command()
|
||||
@commands.guild_only()
|
||||
@utils.custom_perms(send_messages=True)
|
||||
@utils.check_restricted()
|
||||
|
|
|
@ -183,7 +183,7 @@ class Raffle:
|
|||
raffle_count, ctx.prefix)
|
||||
await ctx.send(fmt)
|
||||
|
||||
@raffle.command(pass_context=True, name='create', aliases=['start', 'begin', 'add'])
|
||||
@raffle.command(name='create', aliases=['start', 'begin', 'add'])
|
||||
@commands.guild_only()
|
||||
@utils.custom_perms(kick_members=True)
|
||||
@utils.check_restricted()
|
||||
|
|
|
@ -94,10 +94,10 @@ class Stats:
|
|||
|
||||
await ctx.send(embed=embed)
|
||||
|
||||
@commands.group(pass_context=False)
|
||||
@commands.group()
|
||||
@utils.custom_perms(send_messages=True)
|
||||
@utils.check_restricted()
|
||||
async def command(self):
|
||||
async def command(self, ctx):
|
||||
pass
|
||||
|
||||
@command.command(name="stats")
|
||||
|
|
Loading…
Reference in a new issue