alternate between stonks or not stonks depending on stock movement
This commit is contained in:
parent
dcb6d00578
commit
f3eb5f4d7c
@ -22,12 +22,14 @@ def get_stock(share_name):
|
|||||||
|
|
||||||
change_symbol = '+'
|
change_symbol = '+'
|
||||||
embed_color = 2067276
|
embed_color = 2067276
|
||||||
|
meme_url = 'https://i.ytimg.com/vi/if-2M3K1tqk/hqdefault.jpg'
|
||||||
if float(request['price']) < float(request['open']):
|
if float(request['price']) < float(request['open']):
|
||||||
change_symbol = '-'
|
change_symbol = '-'
|
||||||
embed_color = 15158332
|
embed_color = 15158332
|
||||||
|
meme_url = 'https://i.ytimg.com/vi/E_XlA_IEzwM/hqdefault.jpg'
|
||||||
|
|
||||||
embed = discord.Embed(description='Stock info', color=embed_color, type="rich")
|
embed = discord.Embed(description='Stock info', color=embed_color, type="rich")
|
||||||
embed.set_thumbnail(url='https://i.ytimg.com/vi/if-2M3K1tqk/hqdefault.jpg')
|
embed.set_thumbnail(url=meme_url)
|
||||||
embed.set_author(name=request['name'])
|
embed.set_author(name=request['name'])
|
||||||
embed.add_field(name='Current Price', value=request['price'], inline=False)
|
embed.add_field(name='Current Price', value=request['price'], inline=False)
|
||||||
embed.add_field(name='Previous Close', value=request['previousClose'], inline=False)
|
embed.add_field(name='Previous Close', value=request['previousClose'], inline=False)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user