Skip to content

Commit

Permalink
Merge pull request #239 from pistachiostudio/add-metro-stock
Browse files Browse the repository at this point in the history
add metro stock
  • Loading branch information
quojama authored Oct 27, 2024
2 parents a537ae1 + 46e090e commit bff798b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/cogs/dice.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ async def d(self, interaction: discord.Interaction):
"12452a9d-48c3-0b02-e7eb-0381c3520404", # Kasbahのuuid
"de28aa9b-4cbe-1003-320e-6cb3ec309557", # Piazzaのuuid
"2c09d728-42d5-30d8-43dc-96a05cc7ee9d", # Driftのuuid
"1f10dab3-4294-3827-fa35-c2aa00213cf3", # Basic Trainingのuuid
"d6336a5a-428f-c591-98db-c8a291159134", # Glitchのuuid
]

data_list = [idx for idx, d in enumerate(data) if d["uuid"] not in excluded_uuids]
Expand Down
2 changes: 1 addition & 1 deletion src/cogs/valorant_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from discord import app_commands
from discord.ext import commands

current_season = "e9a2"
current_season = "e9a3"
season_txt = current_season.replace("e", "Episode ").replace("a", " Act ")
VALORANT_TOKEN = os.environ["VALORANT_TOKEN"]

Expand Down
6 changes: 5 additions & 1 deletion src/cogs/wt_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ async def printer(self):
ticker_symbol = "3399.T"
yamaokaya_day_before_ratio, yamaokaya_stock_today = get_stock_price(ticker_symbol)

market_text = f"- :moneybag: **USD/JPY:** {round(usd_jpy_stock_today, 1):,}円 ({usd_jpy_day_before_ratio})\n- :flag_jp: **日経225:** {round(nikkei_stock_today, 1):,}円 ({nikkei_day_before_ratio})\n- :flag_us: **S&P500:** {round(sp500_stock_today, 1):,}pt ({sp500_day_before_ratio})\n- :flag_us: **NASDAQ:** {round(nasdaq_stock_today, 1):,}pt ({nasdaq_day_before_ratio})\n- :ramen: **丸千代山岡家:** {round(yamaokaya_stock_today, 1):,}円 ({yamaokaya_day_before_ratio})\n※()内は前日比。" # noqa: E501
# 東京地下鉄株式会社
ticker_symbol = "9023.T"
metro_day_before_ratio, metro_stock_today = get_stock_price(ticker_symbol)

market_text = f"- :moneybag: **USD/JPY:** {round(usd_jpy_stock_today, 1):,}円 ({usd_jpy_day_before_ratio})\n- :flag_jp: **日経225:** {round(nikkei_stock_today, 1):,}円 ({nikkei_day_before_ratio})\n- :flag_us: **S&P500:** {round(sp500_stock_today, 1):,}pt ({sp500_day_before_ratio})\n- :flag_us: **NASDAQ:** {round(nasdaq_stock_today, 1):,}pt ({nasdaq_day_before_ratio})\n- :ramen: **丸千代山岡家:** {round(yamaokaya_stock_today, 1):,}円 ({yamaokaya_day_before_ratio})\n- :metro: **東京地下鉄:** {round(metro_stock_today, 1):,}円 ({metro_day_before_ratio})\n※()内は前日比。" # noqa: E501

embed = discord.Embed()
embed.color = discord.Color.green()
Expand Down

0 comments on commit bff798b

Please sign in to comment.