Very Initial MVP

There is so much more to do, but I think it is time to commit this to VCS
This commit is contained in:
2024-11-30 03:27:32 -08:00
parent c1a3c73c1d
commit c78ced85ca
35 changed files with 1184 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
from interactions import ActionRow
from token_bot.ui.buttons.tracker.alert_category import HIGH_ALERT_BUTTON, LOW_ALERT_BUTTON, CUSTOM_ALERT_BUTTON
ALERT_TYPE_ROW: list[ActionRow] = [
ActionRow(
HIGH_ALERT_BUTTON,
LOW_ALERT_BUTTON,
)
]

View File

@@ -0,0 +1,67 @@
from interactions import Button, ButtonStyle
ATH_ADD_BUTTON = Button(
custom_id='ath_add_button',
style=ButtonStyle.GREEN,
label="All Time High"
)
ATL_ADD_BUTTON = Button(
custom_id='atl_add_button',
style=ButtonStyle.RED,
label="All Time Low"
)
DH_ADD_BUTTON = Button(
custom_id='dh_add_button',
style=ButtonStyle.GREEN,
label="Daily High"
)
DL_ADD_BUTTON = Button(
custom_id='dl_add_button',
style=ButtonStyle.RED,
label="Daily Low"
)
WH_ADD_BUTTON = Button(
custom_id='wh_add_button',
style=ButtonStyle.GREEN,
label="Weekly High"
)
WL_ADD_BUTTON = Button(
custom_id='wl_add_button',
style=ButtonStyle.RED,
label="Weekly Low"
)
MH_ADD_BUTTON = Button(
custom_id='mh_add_button',
style=ButtonStyle.GREEN,
label="Monthly High"
)
ML_ADD_BUTTON = Button(
custom_id='ml_add_button',
style=ButtonStyle.RED,
label="Monthly Low"
)
YH_ADD_BUTTON = Button(
custom_id='yh_add_button',
style=ButtonStyle.GREEN,
label="Yearly High"
)
YL_ADD_BUTTON = Button(
custom_id='yl_add_button',
style=ButtonStyle.RED,
label="Yearly Low"
)
SP_ADD_BUTTON = Button(
custom_id='sp_add_button',
style=ButtonStyle.GRAY,
label="Custom Limit Price"
)

View File

@@ -0,0 +1,19 @@
from interactions import Button, ButtonStyle
HIGH_ALERT_BUTTON = Button(
custom_id='high_alert_button',
style=ButtonStyle.GREEN,
label="High Price Alert"
)
LOW_ALERT_BUTTON = Button(
custom_id='low_alert_button',
style=ButtonStyle.RED,
label="Low Price Alert"
)
CUSTOM_ALERT_BUTTON = Button(
custom_id='sp_add_button',
style=ButtonStyle.GRAY,
label="Custom Price Alert"
)

View File

@@ -0,0 +1,19 @@
from interactions import Button, ButtonStyle
HIGH_ALERT = Button(
custom_id='high_alert_button',
style=ButtonStyle.GREEN,
label="Add High Alert"
)
LOW_ALERT = Button(
custom_id='low_alert_button',
style=ButtonStyle.RED,
label="Add Low Alert"
)
CUSTOM_ALERT = Button(
custom_id='custom_alert_button',
style=ButtonStyle.GRAY,
label="Add Custom Alert"
)

View File

@@ -0,0 +1,15 @@
from interactions import StringSelectMenu
HIGH_ALERT_MENU = StringSelectMenu(
"Daily High", "Weekly High", "Monthly High", "Yearly High", "All Time High",
placeholder="Select a time period",
min_values=1, max_values=1,
custom_id='high_alert_menu'
)
LOW_ALERT_MENU = StringSelectMenu(
"Daily Low", "Weekly Low", "Monthly Low", "Yearly Low", "All Time Low",
placeholder="Select a time period",
min_values=1, max_values=1,
custom_id='low_alert_menu'
)

View File

@@ -0,0 +1,8 @@
from interactions import StringSelectMenu
FLAVOR_MENU = StringSelectMenu(
"Retail", "Classic",
placeholder="Select version of WoW",
min_values=1, max_values=1,
custom_id='flavor_menu'
)

View File

@@ -0,0 +1,8 @@
from interactions import StringSelectMenu
REGION_MENU = StringSelectMenu(
"US", "EU", "KR", "TW",
placeholder="Select a region",
min_values=1, max_values=1,
custom_id='region_menu'
)