Skip to content

Commit

Permalink
Change hardcoded StaffDev and HiddenMod references to config loads
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkView committed Oct 9, 2024
1 parent cd7c495 commit f06f4ae
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
GIFTED_TIER3_ROLE = Config.CONFIG["Discord"]["Subscribers"]["GiftedTier3Role"]
# HIDDEN_MOD_ROLE should be 1040337265790042172 when committing and refers to the Mod (Role Hidden)
# STAFF_DEVELOPER_ROLE should be 1226317841272279131 when committing and refers to the Staff Developer role
HIDDEN_MOD_ROLE = 1040337265790042172
STAFF_DEVELOPER_ROLE = 1226317841272279131
HIDDEN_MOD_ROLE = Config.CONFIG["Discord"]["Subscribers"]["HiddenMod"]
STAFF_DEVELOPER_ROLE = Config.CONFIG["Discord"]["Subscribers"]["StaffDev"]
FOSSA_BOT_ID = 488164251249279037
SERVER_SUBSCRIPTION_MESSAGE_TYPE = 25
CUSTOM_EMOJI_PATTERN = re.compile("(<a?:(\w+):\d{17,19}>?)")
Expand Down
4 changes: 2 additions & 2 deletions commands/prediction_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
# HIDDEN_MOD_ROLE should be 1040337265790042172 when committing and refers to the Mod (Role Hidden)
# STAFF_DEVELOPER_ROLE should be 1226317841272279131 when committing and refers to the Staff Developer role
# PREDICTION_DEALER_ROLE should be 1229896209515282472 when committing and refers to the Dealer role for Predictions
HIDDEN_MOD_ROLE = 1040337265790042172
STAFF_DEVELOPER_ROLE = 1226317841272279131
HIDDEN_MOD_ROLE = Config.CONFIG["Discord"]["Subscribers"]["HiddenMod"]
STAFF_DEVELOPER_ROLE = Config.CONFIG["Discord"]["Subscribers"]["StaffDev"]
PREDICTION_DEALER_ROLE = 1229896209515282472


Expand Down
4 changes: 2 additions & 2 deletions commands/sync_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# for testing on own setup, these need to be changed to your appropriate IDs
# HIDDEN_MOD_ROLE should be 1040337265790042172 when committing and refers to the Mod (Role Hidden)
# STAFF_DEVELOPER_ROLE should be 1226317841272279131 when committing and refers to the Staff Developer role
HIDDEN_MOD_ROLE = 1040337265790042172
STAFF_DEVELOPER_ROLE = 1226317841272279131
HIDDEN_MOD_ROLE = Config.CONFIG["Discord"]["Subscribers"]["HiddenMod"]
STAFF_DEVELOPER_ROLE = Config.CONFIG["Discord"]["Subscribers"]["StaffDev"]


@app_commands.guild_only()
Expand Down
4 changes: 2 additions & 2 deletions commands/viewer_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
PUBLISH_POLL_URL = f"{get_base_url()}/publish-poll-answer"
POKEMON_PUBLISH_URL = f"{get_base_url()}/publish-streamdeck"

HIDDEN_MOD_ROLE = 1040337265790042172
STAFF_DEVELOPER_ROLE = 1226317841272279131
HIDDEN_MOD_ROLE = Config.CONFIG["Discord"]["Subscribers"]["HiddenMod"]
STAFF_DEVELOPER_ROLE = Config.CONFIG["Discord"]["Subscribers"]["StaffDev"]
MOD_ROLE = Config.CONFIG["Discord"]["Roles"]["Mod"]
GIFTED_T2_ROLE = Config.CONFIG["Discord"]["Subscribers"]["GiftedTier2Role"]
TEMPROLE_AUDIT_CHANNEL = 1225769539267199026
Expand Down
4 changes: 2 additions & 2 deletions controllers/raffle_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

TIER3_ROLE = Config.CONFIG["Discord"]["Subscribers"]["Tier3Role"]
GIFTED_TIER3_ROLE = Config.CONFIG["Discord"]["Subscribers"]["GiftedTier3Role"]
HIDDEN_MOD_ROLE = 1040337265790042172
STAFF_DEVELOPER_ROLE = 1226317841272279131
HIDDEN_MOD_ROLE = Config.CONFIG["Discord"]["Subscribers"]["HiddenMod"]
STAFF_DEVELOPER_ROLE = Config.CONFIG["Discord"]["Subscribers"]["StaffDev"]
MOD_ROLE = Config.CONFIG["Discord"]["Roles"]["Mod"]


Expand Down

0 comments on commit f06f4ae

Please sign in to comment.