Baseball FTDH ping
This commit is contained in:
parent
45fe08c29a
commit
f147a7a646
@ -507,6 +507,10 @@ class Players(commands.Cog):
|
|||||||
|
|
||||||
ping_role = get_role(message, 'Deez Watch', self.bot)
|
ping_role = get_role(message, 'Deez Watch', self.bot)
|
||||||
await message.channel.send(f'{ping_role.mention} there is a **{chance}** chance this is a deez nuts joke.')
|
await message.channel.send(f'{ping_role.mention} there is a **{chance}** chance this is a deez nuts joke.')
|
||||||
|
elif '647270634891640855' in tm:
|
||||||
|
# emoji = await get_emoji(message, 'HYPE')
|
||||||
|
basebally = message.guild.get_member(258104532423147520)
|
||||||
|
await message.channel.send(f'{basebally.mention} <:FTDH:647270634891640855> ALERT')
|
||||||
|
|
||||||
# elif 'fifa' in tm or 'soccer' in tm or 'world cup' in tm or 'the wc' in tm or 'this wc' in tm or 'futbol' in tm:
|
# elif 'fifa' in tm or 'soccer' in tm or 'world cup' in tm or 'the wc' in tm or 'this wc' in tm or 'futbol' in tm:
|
||||||
# randint = random.randint(1, 5)
|
# randint = random.randint(1, 5)
|
||||||
@ -1126,7 +1130,6 @@ class Players(commands.Cog):
|
|||||||
embed=embed
|
embed=embed
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@commands.command(name='weather', help='Roll ballpark weather')
|
@commands.command(name='weather', help='Roll ballpark weather')
|
||||||
async def weather_command(self, ctx, team_abbrev=None):
|
async def weather_command(self, ctx, team_abbrev=None):
|
||||||
current = await db_get('current')
|
current = await db_get('current')
|
||||||
|
|||||||
@ -634,9 +634,11 @@ def random_soccer():
|
|||||||
|
|
||||||
|
|
||||||
async def get_emoji(ctx, name, return_empty=True):
|
async def get_emoji(ctx, name, return_empty=True):
|
||||||
|
logger.info(f'Looking up {name} emoji')
|
||||||
try:
|
try:
|
||||||
emoji = await commands.converter.EmojiConverter().convert(ctx, name)
|
emoji = await commands.converter.EmojiConverter().convert(ctx, name)
|
||||||
except:
|
except Exception as e:
|
||||||
|
logger.error(e, exc_info=True)
|
||||||
if return_empty:
|
if return_empty:
|
||||||
emoji = ''
|
emoji = ''
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user