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:
11
token_bot/ui/action_row/tracker.py
Normal file
11
token_bot/ui/action_row/tracker.py
Normal 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,
|
||||
)
|
||||
]
|
||||
67
token_bot/ui/buttons/tracker/add.py
Normal file
67
token_bot/ui/buttons/tracker/add.py
Normal 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"
|
||||
)
|
||||
19
token_bot/ui/buttons/tracker/alert_category.py
Normal file
19
token_bot/ui/buttons/tracker/alert_category.py
Normal 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"
|
||||
)
|
||||
19
token_bot/ui/buttons/tracker/registration.py
Normal file
19
token_bot/ui/buttons/tracker/registration.py
Normal 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"
|
||||
)
|
||||
15
token_bot/ui/select_menus/alert_menu.py
Normal file
15
token_bot/ui/select_menus/alert_menu.py
Normal 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'
|
||||
)
|
||||
8
token_bot/ui/select_menus/flavor_menu.py
Normal file
8
token_bot/ui/select_menus/flavor_menu.py
Normal 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'
|
||||
)
|
||||
8
token_bot/ui/select_menus/region_menu.py
Normal file
8
token_bot/ui/select_menus/region_menu.py
Normal 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'
|
||||
)
|
||||
Reference in New Issue
Block a user