|
|
|
@ -53,12 +53,12 @@ class EnvService:
|
|
|
|
|
allowed_roles.split(",") if "," in allowed_roles else [allowed_roles]
|
|
|
|
|
)
|
|
|
|
|
return allowed_roles
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
|
def get_welcome_message():
|
|
|
|
|
# WELCOME_MESSAGE is a default string used to welcome new members to the server if GPT3 is not available.
|
|
|
|
|
#The string can be blank but this is not advised. If a string cannot be found in the .env file, the below string is used.
|
|
|
|
|
#The string is DMd to the new server member as part of an embed.
|
|
|
|
|
# The string can be blank but this is not advised. If a string cannot be found in the .env file, the below string is used.
|
|
|
|
|
# The string is DMd to the new server member as part of an embed.
|
|
|
|
|
try:
|
|
|
|
|
welcome_message = os.getenv("WELCOME_MESSAGE")
|
|
|
|
|
except:
|
|
|
|
|