diff --git a/cogs/admins.py b/cogs/admins.py index eb6ee31..ff272a4 100644 --- a/cogs/admins.py +++ b/cogs/admins.py @@ -343,7 +343,7 @@ class Admins(commands.Cog): output_string += f'\nJust sent keeper message to sba-network-news' await interaction.edit_original_response(content=output_string) - + @commands.command(name='migrate-players', help='Migrate players between "same-set" seasons') @commands.has_any_role('Da Commish') async def migrate_players(self, ctx, from_season: int, to_season: int): diff --git a/cogs/players.py b/cogs/players.py index 9019ba9..382aa7b 100644 --- a/cogs/players.py +++ b/cogs/players.py @@ -331,6 +331,21 @@ class Players(commands.Cog): await message.channel.send( 'https://tenor.com/view/dad-jokes-aht-aht-dad-jokes-aht-aht-ha-ha-ha-knee-slapper-gif-26152690' ) + elif '||' in tm: + split_text = tm.split('||') + spoiler_text = split_text[1] + if len(split_text) > 3 and 'z' not in spoiler_text: + chance = 'Low' + elif 8 <= len(spoiler_text) <= 10: + chance = 'High' + elif 'z' in spoiler_text: + chance = 'Medium' + else: + chance = 'Low' + + 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.') + # 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) # if randint == 5: diff --git a/cogs/transactions.py b/cogs/transactions.py index e5735fe..b30ebfb 100644 --- a/cogs/transactions.py +++ b/cogs/transactions.py @@ -4,7 +4,7 @@ import copy from helpers import * from db_calls import db_get, db_patch, get_team_by_owner, get_team_by_abbrev, get_player_by_name, patch_player, db_post from discord.ext import commands, tasks -OFFSEASON_FLAG = False +OFFSEASON_FLAG = True class SBaTransaction: