slashcommands-accountswitcher: allow using current token

This commit is contained in:
ave 2019-05-26 23:03:23 +03:00
parent 08baa86ac6
commit f9c80a395e
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B
2 changed files with 23 additions and 9 deletions

View file

@ -27,12 +27,13 @@ CutTheCord has a couple features that can utilized with slash commands as well:
- /ctc notyping true/false -> Disables typing event so that it's not visible when you type (true = typing is shown, false = not shown)
- /ctc token -> Gives your token
- /ctc token $token -> Sets your token to the one specified, allowing switching between accounts
- /ctc addaccount $name $token -> Adds an account to the account switcher (name can be anything)
- /ctc addaccount $name $token -> Adds an account to the account switcher (name can be anything, token will be set to the current one if it's `current`)
- /ctc account $name -> Switches to the account (requires you to restart the app)
Commands like fw can be generated by `textreplacegen.py` or `textreplacegen-array.py` provided in this folder.
## Known bugs
- There's no help.
- Output from /ctc commands doesn't get properly displayed if enter is not pressed using a physical keyboard (usb or bluetooth). This is bizarre and oh god please help me solve this bug.
#### Available and tested on: