Added a possibility to greet new users individualy

This commit is contained in:
BaerbelBox
2022-08-29 09:00:21 +02:00
parent 55855b9c20
commit a9c7f33241
3 changed files with 37 additions and 2 deletions

View File

@@ -46,6 +46,8 @@ class Config(object):
self._config_dict['blacklist'].append(module.strip())
if 'greeting' not in self._config_dict:
self._config_dict['greeting'] = "Hallo"
if 'first_greeting' not in self._config_dict:
self._config_dict['first_greeting'] = "Herzlich Willkommen bei uns, "
@property
def lang(self):
return self._config_dict["lang"]
@@ -80,4 +82,8 @@ class Config(object):
@property
def greeting(self):
return self._config_dict['greeting']
return self._config_dict['greeting']
@property
def first_greeting(self):
return self._config_dict['first_greeting']