Bring back market watch
This commit is contained in:
parent
31d78f0315
commit
cb6319cf29
@ -202,7 +202,7 @@ class Economy(commands.Cog):
|
||||
if line['title'] in topics:
|
||||
topics[line['title']]['notifs'].append(line)
|
||||
|
||||
logging.debug(f'topics:\n{topics}')
|
||||
logging.info(f'topics:\n{topics}')
|
||||
for topic in topics:
|
||||
embed = get_team_embed(title=f'{topic}{"s" if len(topics[topic]["notifs"]) > 1 else ""}')
|
||||
embed.description = topics[topic]['desc']
|
||||
@ -231,6 +231,8 @@ class Economy(commands.Cog):
|
||||
this_embed.add_field(
|
||||
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
|
||||
async def before_notif_check(self):
|
||||
await self.bot.wait_until_ready()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user