Skip to content

jooert/matrix-displayname

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

matrix-displayname

NOTE: Instead of using this script, it is now easier to just use the new /roomnick command in Riot/Web, see this PR.

This is just a small Python script to set a displayname for just one Matrix room until support is implemented in major clients (see this tracking issue for Riot/Web).

Usage

./set_displayname '!asfLdzLnOdGRkdPZWu:example.org' 'John Doe' '@johndoe:example.org' [password]

The script takes three positional arguments: the Matrix room ID, the displayname to be set and the Matrix ID (MXID) for the user whose displayname you want to set. You may also supply the user's password as the fourth positional argument; if you do not the script will prompt for the password. You should quote the room ID (or at least escape the exclamation mark !) when using bash (or similar shells) as the exclamation mark ! is a special character there.

Licensing

The code in this project is licensed under the MIT license.

About

Set a per-room displayname in a Matrix room

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages