Skip to content

Instantly share code, notes, and snippets.

@non-Jedi
Last active January 24, 2018 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save non-Jedi/5e33c1c17825ee663fc8dac2e1b48b1c to your computer and use it in GitHub Desktop.
Save non-Jedi/5e33c1c17825ee663fc8dac2e1b48b1c to your computer and use it in GitHub Desktop.
from matrix_client.client import MatrixClient
client = MatrixClient("https://matrix.org", token="sekrit_token", user_id="@skavrate:matrix.org")
offtopic = client.rooms["!UcYsUzyxTGDxLBEvLz:matrix.org"]
offtopic.modify_user_power_levels({"Half-Shot:half-shot.uk": 100,
"skaverat:skaverat.net": 100})
@non-Jedi
Copy link
Author

non-Jedi commented Jan 24, 2018

Can do below if preferred, but it will create a lot of devices on that account over time.

client = MatrixClient("https://matrix.org", user_id="@skavrate:matrix.org")
client.login_with_password("sekrit_password")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment