generated from Nemesis/Exemple
welcome msg
This commit is contained in:
parent
13be39aefe
commit
59f0303c99
1 changed files with 2 additions and 1 deletions
|
@ -1224,7 +1224,8 @@ def accueil(room,event):
|
|||
if (event['sender'] in admins):
|
||||
global welcome
|
||||
args = event['content']['body'].split()
|
||||
reponse = " ".join(args.pop(0))
|
||||
args.pop(0)
|
||||
reponse = " ".join(args)
|
||||
if (len(args) > 0):
|
||||
welcome[room.room_id] = reponse
|
||||
room.send_text("Le message d'accueil est désormais : " + reponse)
|
||||
|
|
Loading…
Reference in a new issue