Skip to content

Commit

Permalink
always check stock price
Browse files Browse the repository at this point in the history
  • Loading branch information
rssnyder committed Mar 1, 2021
1 parent 880873b commit 65bb861
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ async def stock_update_name(self, ticker: str, name: str):
name = override for symbol as shown on bot
'''

old_price = ''

await self.wait_until_ready()
logging.info(f'stock name update ready: {name}')

Expand All @@ -116,7 +114,6 @@ async def stock_update_name(self, ticker: str, name: str):
username=f'{name} - ${price}'
)

old_price = price
logging.info('name updated')
except discord.HTTPException as e:
logging.warning(f'updating name failed: {e.status}: {e.text}')
Expand All @@ -136,9 +133,6 @@ async def stock_update_activity(self, ticker: str, name: str, change_nick: bool
frequency = how often to update in seconds
'''

# Get config
old_price = ''

await self.wait_until_ready()
logging.info(f'stock activity update ready: {name}')

Expand Down Expand Up @@ -204,7 +198,6 @@ async def stock_update_activity(self, ticker: str, name: str, change_nick: bool
)
)

old_price = price
logging.info('activity updated')

except discord.InvalidArgument as e:
Expand Down

0 comments on commit 65bb861

Please sign in to comment.