tweaking wording on notice of restricted room
This commit is contained in:
parent
69ff15d22f
commit
50dff7a634
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ def on_receive_events(transaction):
|
||||||
elif r.status_code == 401:
|
elif r.status_code == 401:
|
||||||
txId += 1
|
txId += 1
|
||||||
err_notice = event["user_id"] + ": The pnut.io channel this room is connected with is restricted to valid "
|
err_notice = event["user_id"] + ": The pnut.io channel this room is connected with is restricted to valid "
|
||||||
err_notice += "pnut.io users only. Direct chat this bot to associate your account."
|
err_notice += "pnut.io users only. Start a direct chat to link your account."
|
||||||
body = {'msgtype': 'm.notice', 'body': err_notice}
|
body = {'msgtype': 'm.notice', 'body': err_notice}
|
||||||
url = app.config['MATRIX_HOST']
|
url = app.config['MATRIX_HOST']
|
||||||
url += '/_matrix/client/r0/rooms/{0}/send/m.room.message/{1}'.format(event['room_id'], str(txId))
|
url += '/_matrix/client/r0/rooms/{0}/send/m.room.message/{1}'.format(event['room_id'], str(txId))
|
||||||
|
|
Loading…
Reference in a new issue