Skip to content

Commit 445cdbd

Browse files
Merge main into message-length-checks
2 parents 467a14b + 62a2aef commit 445cdbd

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

.env.example

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# dotenv-linter:off ValueWithoutQuotes
2+
13
# !!REQUIRED!!
24
# The Discord token for the bot you created (available on your bot page in the developer portal: https://discord.com/developers/applications))
35
# Must be a valid Discord bot token (see https://discord.com/developers/docs/topics/oauth2#bot-vs-user-accounts)
@@ -34,12 +36,10 @@ MEMBERSHIP_PERKS_URL=[Replace with your group\'s membership-perks URL]
3436
# Must be a valid URL
3537
CUSTOM_DISCORD_INVITE_URL=[Replace with your group\'s Discord server invite link]
3638

37-
3839
# The minimum level that logs must meet in order to be logged to the console output stream
3940
# One of: DEBUG, INFO, WARNING, ERROR, CRITICAL
4041
CONSOLE_LOG_LEVEL=INFO
4142

42-
4343
# !!REQUIRED!!
4444
# The URL to retrieve the list of IDs of people that have purchased a membership to your community group
4545
# Ensure that all members are visible without pagination. For example, if your members-list is found on the UoB Guild of Students website, ensure the URL includes the "sort by groups" option
@@ -52,17 +52,14 @@ ORGANISATION_ID=[Replace with your group\'s MSL Organisation ID]
5252
# This can be extracted from your web-browser, after logging in to view your members-list yourself. It will probably be listed as a cookie named `.AspNet.SharedCookie`
5353
SU_PLATFORM_ACCESS_COOKIE=[Replace with your .AspNet.SharedCookie cookie]
5454

55-
5655
# The probability that the more rare ping command response will be sent instead of the normal one
5756
# Must be a float between & including 0 to 1
5857
PING_COMMAND_EASTER_EGG_PROBABILITY=0.01
5958

60-
6159
# The path to the messages JSON file that contains the common messages sent by the bot
6260
# Must be a path to a JSON file that exists, that contains a JSON string that can be decoded into a Python dict object
6361
MESSAGES_FILE_PATH=messages.json
6462

65-
6663
# Whether introduction reminders will be sent to Discord members that are not inducted, saying that they need to send an introduction to be allowed access
6764
# One of: Once, Interval, False
6865
SEND_INTRODUCTION_REMINDERS=Once
@@ -94,7 +91,6 @@ SEND_GET_ROLES_REMINDERS_DELAY=40h
9491
# Must be a string of the seconds, minutes or hours between reminders (format: "<seconds>s<minutes>m<hours>h")
9592
ADVANCED_SEND_GET_ROLES_REMINDERS_INTERVAL=24h
9693

97-
9894
# The number of days to look over messages sent, to generate statistics data
9995
# Must be a float representing the number of days to look back through
10096
STATISTICS_DAYS=30
@@ -103,20 +99,17 @@ STATISTICS_DAYS=30
10399
# Must be a comma seperated list of strings of role names
104100
STATISTICS_ROLES=Committee,Committee-Elect,Student Rep,Member,Guest,Server Booster,Foundation Year,First Year,Second Year,Final Year,Year In Industry,Year Abroad,PGT,PGR,Alumnus/Alumna,Postdoc,Quiz Victor
105101

106-
107102
# !!REQUIRED!!
108103
# The URL of the your group's Discord guild moderation document
109104
# Must be a valid URL
110105
MODERATION_DOCUMENT_URL=[Replace with your group\'s moderation document URL]
111106

112-
113107
# The name of the channel, that warning messages will be sent to when a committee-member manually applies a moderation action (instead of using the `/strike` command)
114108
# Must be the name of a Discord channel in your group's Discord guild, or the value "DM" (which indicates that the messages will be sent in the committee-member's DMs)
115109
# This can be the name of ANY Discord channel (so the offending person *will* be able to see these messages if a public channel is chosen)
116110
MANUAL_MODERATION_WARNING_MESSAGE_LOCATION=DM
117111

118-
119112
# The set of roles that are tied to the membership of your community group
120113
# These roles will be removed along with the membership role upon annual handover/reset
121114
# Must be a comma seperated list of strings of role names
122-
MEMBERSHIP_DEPENDENT_ROLES=member-red,member-blue,member-green,member-yellow,member-purple,member-pink,member-orange,member-grey,member-black,member-white
115+
MEMBERSHIP_DEPENDENT_ROLES=member-red,member-blue,member-green,member-yellow,member-purple,member-pink,member-orange,member-grey,member-black,member-white

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ default_language_version:
44
default_stages: [pre-commit, pre-merge-commit, manual]
55

66
repos:
7+
- repo: https://github.com/dotenv-linter/dotenv-linter
8+
rev: v4.0.0
9+
hooks:
10+
- id: dotenv-linter
11+
args: [fix, --no-backup]
12+
713
- repo: https://github.com/hadolint/hadolint
814
rev: v2.14.0
915
hooks:

0 commit comments

Comments
 (0)