diff --git a/app/bot.py b/app/bot.py old mode 100644 new mode 100755 diff --git a/app/stock.py b/app/stock.py old mode 100755 new mode 100644 index 6dde77c0..a7174406 --- a/app/stock.py +++ b/app/stock.py @@ -133,9 +133,13 @@ def get_stock(share_name, verbose=False): if verbose: embed = _add_verbose_fields(embed, request) + chart_url = "https://www.marketwatch.com/investing/stock" + if "-" in share_name: + chart_url = "https://coinmarketcap.com/currencies" + share_name = request["shortName"].split()[0].lower() embed.add_field( name="Link to stock price", - value="https://www.marketwatch.com/investing/stock/%s" % share_name, + value="%s/%s" % (chart_url, share_name), inline=False, ) embed.set_footer( diff --git a/helm/values.yaml b/helm/values.yaml index e1a5b7c5..03aa92b5 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -6,7 +6,7 @@ replicaCount: 1 image: # Overrides the image tag whose default is the chart appVersion. - tag: "189" + tag: "191" repository: ldooks/dragon-bot pullPolicy: IfNotPresent