cutthecord/patches/slashcommands/README.md
2020-05-27 17:37:12 +03:00

3.9 KiB
Raw Blame History

DisTok CutTheCord: Slash Commands Patch

This patch adds a message intercept feature with minimal changes to the original code, and adds slash commands.

This patch relies on supplemental, so please use that patch too.

The following slash commands are supported:

  • /upper -> Makes text uppercase
  • /lower -> Makes text lowercase
  • /bold -> Makes text bold
  • /spoiler -> Marks your message as a spoiler (same as Discord Desktop)
  • /spoilerimg -> Prepends SPOILER_ to names of all images attached to the message that starts with this, causing them to get marked as spoiler.
  • /me -> Display text with emphasis (same as Discord Desktop)
  • /st -> Puts a strikethrough the message
  • /lenny -> Appends ( ͡° ͜ʖ ͡°) to your message
  • /owo -> Myakes tyext reawwy owo-ly, nya :3

Following commands are supported, but create less accessible text (so you should probably ensure that no one around you will be affected before you use them):

  • /fw -> Makes text fullwidth (like "    ")
  • /gordon -> 𝗛𝗲𝗹𝗹𝗼𝗚𝗼𝗿𝗱𝗼𝗻
  • /small -> Makes text smaller (like "ᴛʜɪs")
  • /smaller -> Makes text even smaller (like "ᵗʰvˢ")
  • /flip -> Flips text (like "ʇɥıs")
  • /clap -> Please 👏 clap

CutTheCord has a couple features that can utilized with slash commands as well:

  • /ctc channelleak true/false -> Shows all channels, even those you don't have permissions to view (might mess with channel editing or editing while it's enabled)
  • /ctc notyping true/false -> Disables typing event so that it's not visible when you type (true = typing is shown, false = not shown)
  • /ctc nodelete true/false -> Disables handling of message delete events. Currently deletes messages don't have anything changed about them, but I plan to append "(deleted)" to them eventually. (true = Deleted messages stay, false = they get deleted)
  • /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, 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.
  • The slashcommands do not show when putting a slash (which was added in I think 9.7.2).
  • 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:

  • 9.0.0
  • 9.0.1
  • 9.0.2
  • 9.0.3
  • 9.0.4
  • 9.0.6
  • 9.0.9
  • 9.1.0
  • 9.3.8-SAO-Heathcliff
  • 9.3.9
  • 9.4.0
  • 9.4.2-SA
  • 9.4.3-SA
  • 9.4.5
  • 9.4.6
  • 9.4.7
  • 9.4.8
  • 9.6.3
  • 9.6.4
  • 9.6.5
  • 9.6.6
  • 9.6.7
  • 9.6.8
  • 9.7.0
  • 9.9.2
  • 9.9.3
  • 9.9.4
  • 9.9.6
  • 10.0.6
  • 10.0.7
  • 10.1.1
  • 10.1.2
  • 10.1.3
  • 10.1.5
  • 10.1.6
  • 10.1.9
  • 10.2.0
  • 10.2.1
  • 10.2.2
  • 10.2.3
  • 10.2.4
  • 10.2.5
  • 10.2.6
  • 10.2.9
  • 10.3.1
  • 10.3.2
  • 10.3.3
  • 10.4.1
  • 10.5.1
  • 11.0
  • 11.4
  • 11.5
  • 12.0-alpha1
  • 11.7
  • 12.1
  • 12.2
  • 12.3
  • 13-alpha1
  • 12.5
  • 14-alpha2
  • 14-alpha3
  • 14.0
  • 15-alpha3
  • 15.0
  • 16
  • 17.0
  • 18.0-alpha1
  • 18.0-alpha9
  • 18.0-alpha11
  • 18.0-alpha12
  • 19.0
  • 20-alpha1
  • 21-alpha2
  • 22-alpha1
  • 21.3
  • 22-alpha3-alpha1
  • 16
  • 17.0
  • 18.0-alpha1
  • 18.0-alpha9
  • 18.0-alpha11
  • 18.0-alpha12
  • 19.0
  • 20-alpha1
  • 21-alpha2
  • 22-alpha1
  • 21.3
  • 22-alpha3-alpha4
  • 16
  • 17.0
  • 18.0-alpha1
  • 18.0-alpha9
  • 18.0-alpha11
  • 18.0-alpha12
  • 19.0
  • 20-alpha1
  • 21-alpha2
  • 22-alpha1
  • 21.3
  • 22-alpha3-alpha6
  • 16
  • 17.0
  • 18.0-alpha1
  • 18.0-alpha9
  • 18.0-alpha11
  • 18.0-alpha12
  • 19.0
  • 20-alpha1
  • 21-alpha2
  • 22-alpha1
  • 21.3
  • 22-alpha3-alpha7
  • 16
  • 17.0
  • 18.0-alpha1
  • 18.0-alpha9
  • 18.0-alpha11
  • 18.0-alpha12
  • 19.0
  • 20-alpha1
  • 21-alpha2
  • 22-alpha1
  • 21.3
  • 22-alpha3
  • 22.4
  • 22.5
  • 23.0
  • 24-alpha2
  • 24