#
🎭 Templates#
Only requiered variables#
All available variables#
🤓 DescriptionHere you can finde a detailed description of available environment variables. Variables marked with 🔴 are required !
#
🔴 ADMIN_IDDiscord-Id of the initial administrator. More can be added later via web interface. To get the id, activate the "Developer Mode" in Discord. More information can you find here.
- Requirements: Type of number.
- Example:
912309123909091230992
#
🔴 ADMIN_NAMEUsername of the initial administrator in form of username#0000
. More can be added later via web interface.
- Requirements: Type of string; Needs to match
/^[\w\s]{2,32}#\d{4}$/
- Example:
user name#1234
#
🔴 DISCORD_CHANNELId of the channel in discord, where all notification should be published. To get the id, activate the "Developer Mode" in Discord. More information can you find here.
- Requirements: Type of number
- Example:
912309123909091230992
#
🔴 DISCORD_TOKENToken you got from the Discord-Developer-Portal. Instructions, how you can create your own token, can you here
- Requirements: Type of string
- Example:
123asdasd.asdk123m123bk123123.n23kn1n2k3nk123
#
🔴 JWT_SECRET ⚠️Secret that is used to sign your authentication token. Choose a very strong secret! You do not have to save it, but it must be strong!
- Requirements: Type of string;
- Example:
ks454DF)ad!sd084!
#
JWT_EXPIRESINDefines, how long you will stay logged in at the web interface. 10m
is a good value.
- Requirements: Type of string; unit at the end
- Default value:
10m
- Example:
3h
#
🔴 MONGO_HOSTPath to your mongodb instance.
- Requirements: Type of string
- Example:
mongodb://mongo:27017/fmdb?ssl=true
#
MONGOOSE_DEBUG (only needed for development)Activates logging of mongodb queries. Only needed for development.
- Requirements: Boolean (
true
orfalse
) - Default value:
false
- Example:
false
#
🔴 MOODLE_BASE_URLThe URL where the moodle instance is running. You can check and generate this variable on https://fmdb.tjarbo.me.
- Requirements: Type of string and a valid RFC 3986 URI
- Example:
https://moodle.myuniversity.edu
#
MOODLE_FETCH_INTERVALDefines how often the FMDB looks for updates on the moodle instance. Interval in milliseconds.
- Requirements: Type of number
- Default value:
900000
- Example:
1500000
#
MOODLE_REMINDER_TIME_LEFTIf the remaining time of a submission is less than the specified time, a notification will be sent. Time in seconds.
- Requirements: Type of number
- Default value:
86400
- Example:
86400
#
🔴 MOODLE_TOKENToken to log in to the specified Moodle instance. You can maybe get this from your settings or from https://fmdb.tjarbo.me.
- Requirements: Type of string
- Example:
asdbasd123asdb123123jnj5234nbadjn12332
#
MOODLE_USE_COURSE_SHORTNAMEWhether to use short- or fullname of the courses in the discord message.
- Requirements: Boolean (
true
orfalse
) - Default value:
true
- Example:
false
#
🔴 MOODLE_USERIDYour user id on the specified Moodle instance. It is part of the URL if you open your Moodle-Profile. https://fmdb.tjarbo.me can help you with this.
- Requirements: Type of number
- Example:
12345
#
NODE_ENVDefines the environment, where the bot will be started.
- Requirements: Only allowed values:
development
,production
,test
,provision
- Default value:
production
- Example:
development
#
PORTDefines on which Port your sever listens.
- Requirements: Needs to be a number
- Default value:
4040
- Example:
8080