This repository has been archived on 2021-08-24. You can view files and clone it, but cannot push or open issues or pull requests.
cutthecord/patches/slashcommands
2019-10-31 12:40:32 +03:00
..
900.patch Add morse 2019-05-21 19:36:08 +03:00
901.patch 9.0.1 2019-05-22 09:04:37 +03:00
902.patch 9.0.2 2019-05-23 08:46:44 +03:00
903.patch slashcommands-accountswitcher: allow using current token 2019-05-26 23:03:23 +03:00
904.patch Revert "Revert "9.0.4"" 2019-06-02 13:12:05 +03:00
906.patch fix slashcommands on 9.0.6 2019-06-02 13:56:58 +03:00
909.patch 9.0.9 2019-06-08 01:35:44 +03:00
910.patch 9.1.0 2019-06-25 15:11:01 +03:00
938.patch 9.3.8 2019-08-12 21:10:22 +03:00
939.patch 9.3.9 + New icon from dzuk! 2019-08-16 23:58:00 +03:00
940.patch 9.4.0 + ave custom logo 2019-08-17 00:41:53 +03:00
942.patch 9.4.2 2019-08-17 13:20:19 +03:00
943.patch 9.4.3 :) 2019-08-20 10:32:35 +03:00
945.patch 9.4.5 :) 2019-08-22 15:06:29 +03:00
946.patch 9.4.6. 2019-08-22 23:01:07 +03:00
947.patch 9.4.7 2019-08-24 12:28:21 +03:00
948.patch 9.4.8 :) 2019-08-27 15:15:17 +03:00
963.patch 9.6.3 2019-10-01 23:01:01 +03:00
964.patch 9.6.4 :) 2019-10-01 23:06:14 +03:00
965.patch 9.6.5 2019-10-03 08:52:14 +03:00
966.patch 9.6.6 2019-10-05 16:07:30 +03:00
967.patch slashcommands: add /ctc nodelete 2019-10-05 20:12:20 +03:00
968.patch 9.6.8. 2019-10-08 02:27:20 +03:00
970.patch 9.7.0 2019-10-10 08:54:42 +03:00
980.patch slashcommands: try to solve crash on boot 2019-10-31 12:40:32 +03:00
README.md Add 9.8.0 support 2019-10-31 11:33:05 +03:00
textreplacegen-array.py Add morse 2019-05-21 19:36:08 +03:00
textreplacegen.py Slash commands! 2019-05-20 01:14:33 +03:00

DisTok CutTheCord: Slash Commands Patch

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

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
  • /shrug -> Appends ¯\(ツ)/¯ to your message (same as Discord Desktop)
  • /tableflip -> Appends (╯°□°)╯︵ ┻━┻ to your message (same as Discord Desktop)
  • /unflip -> Appends ┬─┬ ( ゜-゜ノ) to your message (same as Discord Desktop)
  • /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 "    ")
  • /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.
  • 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.8.0