Bring back market watch

This commit is contained in:
Cal Corum 2024-05-18 17:07:17 -05:00
parent 31d78f0315
commit cb6319cf29

View File

@ -202,7 +202,7 @@ class Economy(commands.Cog):
if line['title'] in topics: if line['title'] in topics:
topics[line['title']]['notifs'].append(line) topics[line['title']]['notifs'].append(line)
logging.debug(f'topics:\n{topics}') logging.info(f'topics:\n{topics}')
for topic in topics: for topic in topics:
embed = get_team_embed(title=f'{topic}{"s" if len(topics[topic]["notifs"]) > 1 else ""}') embed = get_team_embed(title=f'{topic}{"s" if len(topics[topic]["notifs"]) > 1 else ""}')
embed.description = topics[topic]['desc'] embed.description = topics[topic]['desc']
@ -231,6 +231,8 @@ class Economy(commands.Cog):
this_embed.add_field( this_embed.add_field(
name=p_list[player]['field_name'], value=p_list[player]['message'], inline=False) name=p_list[player]['field_name'], value=p_list[player]['message'], inline=False)
await send_to_channel(self.bot, topics[topic]['channel_name'], embed=embed)
@notif_check.before_loop @notif_check.before_loop
async def before_notif_check(self): async def before_notif_check(self):
await self.bot.wait_until_ready() await self.bot.wait_until_ready()