v3 API Updates - admins, transactions

This commit is contained in:
Cal Corum 2023-07-09 10:30:00 -05:00
parent af5ca46925
commit 0ccc60deb4
2 changed files with 641 additions and 615 deletions

View File

@ -65,11 +65,11 @@ class Admins(commands.Cog):
logging.error(f'Error blasting a message: {type(e)}: {e}')
await interaction.response.send_message(content=f'Uh oh\n\n{type(e)}: {e}')
@commands.command(name='sendstats', help='all, batting, pitching')
@commands.is_owner()
async def send_stats_command(self, ctx, which='all'):
trans_cog = self.bot.get_cog('Transactions')
await trans_cog.send_stats_to_sheets(which=which)
# @commands.command(name='sendstats', help='all, batting, pitching')
# @commands.is_owner()
# async def send_stats_command(self, ctx, which='all'):
# trans_cog = self.bot.get_cog('Transactions')
# await trans_cog.send_stats_to_sheets(which=which)
@commands.command(name='test', hidden=True)
@commands.is_owner()

File diff suppressed because it is too large Load Diff