Once and for all reformat.

Will be using black code formatter
This commit is contained in:
2024-12-08 17:07:26 -08:00
parent 3a06464c29
commit 34badf17eb
25 changed files with 359 additions and 295 deletions

View File

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

View File

@@ -1,67 +1,45 @@
from interactions import Button, ButtonStyle
ATH_ADD_BUTTON = Button(
custom_id='ath_add_button',
style=ButtonStyle.GREEN,
label="All Time High"
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"
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"
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"
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"
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"
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"
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"
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"
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"
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"
custom_id="sp_add_button", style=ButtonStyle.GRAY, label="Custom Limit Price"
)

View File

@@ -1,19 +1,13 @@
from interactions import Button, ButtonStyle
HIGH_ALERT_BUTTON = Button(
custom_id='high_alert_button',
style=ButtonStyle.GREEN,
label="High Price Alert"
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_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"
custom_id="sp_add_button", style=ButtonStyle.GRAY, label="Custom Price Alert"
)

View File

@@ -1,19 +1,13 @@
from interactions import Button, ButtonStyle
HIGH_ALERT = Button(
custom_id='high_alert_button',
style=ButtonStyle.GREEN,
label="Add High Alert"
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_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"
)
custom_id="custom_alert_button", style=ButtonStyle.GRAY, label="Add Custom Alert"
)

View File

@@ -1,15 +1,25 @@
from interactions import StringSelectMenu
HIGH_ALERT_MENU = StringSelectMenu(
"Daily High", "Weekly High", "Monthly High", "Yearly High", "All Time High",
"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'
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",
"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'
)
min_values=1,
max_values=1,
custom_id="low_alert_menu",
)

View File

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

View File

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