Merge pull request #1 from qwewqa/master

Merge to master
master
sigonasr2, Sig, Sigo 4 years ago committed by GitHub
commit 4f28a62b6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      miyu_bot/commands/cogs/event.py

@ -263,6 +263,7 @@ class Event(commands.Cog):
help='!cutoff 50') help='!cutoff 50')
async def cutoff(self, ctx: commands.Context, tier: str = ''): async def cutoff(self, ctx: commands.Context, tier: str = ''):
def process_tier_arg(tier_arg): def process_tier_arg(tier_arg):
tier_arg = tier_arg.lower()
if tier_arg[0] == 't': if tier_arg[0] == 't':
tier_arg = tier_arg[1:] tier_arg = tier_arg[1:]
if tier_arg[-1] == 'k': if tier_arg[-1] == 'k':
@ -312,7 +313,7 @@ class Event(commands.Cog):
value=str(data['points'])+average_rate, value=str(data['points'])+average_rate,
inline=True) inline=True)
embed.add_field(name='Last Update', embed.add_field(name='Last Update',
value=data['lastUpdate'], value=data['lastUpdate'] or 'None',
inline=True) inline=True)
embed.add_field(name='Rate', embed.add_field(name='Rate',
value=f'{data["rate"]} pts/hr', value=f'{data["rate"]} pts/hr',

Loading…
Cancel
Save