diff --git a/help/help-custom_commands.html b/help/help-custom_commands.html index 01bbc8b..61c265a 100644 --- a/help/help-custom_commands.html +++ b/help/help-custom_commands.html @@ -20,6 +20,7 @@
  • Anonymous Custom Commands
  • Chaining Commands
  • Foreach
  • +
  • Run command in specific channel
  • @@ -116,6 +117,10 @@ to run the same command for each entry of a space-separated list, for example a list of channels from the $1- replacement.

    +

    Run command in specific channel

    +

    The /runin command can be used + to run a command in a specific open channel.

    +

    Replacements

    Pre-defined Parameters Example

    @@ -537,12 +561,13 @@
    Example: $input()
    Example: $input(Enter a number please)
    -
    $datetime([format],[timezone],[locale])
    +
    $datetime([format],[timezone],[locale],[unix time])
    Outputs the current date/time. You can optionally give a format pattern (based on DateTimeFormatter), a timezone (based on ZoneId, although something like "New York" should also work) and a locale - (a language tag such as "en").
    + (a language tag such as "en"). The optional unix time parameter must + be in milliseconds.
    Predefined formats:
  • blacklist: to specify one or more text patterns @@ -1093,6 +1104,33 @@ in the message, while blacklist:!cheesecake reg:^!\w+ will only prevent the match when it fully encompasses the regular text match, so only when the message starts with !cheesecake.
  • +
  • if: to specify + additional conditions that have an "or" relationship to eachother. + This is a comma-separated list (enclose spaces and commas in quotes + to ignore them) of Highlight items, whereas at least one has to + match. +

    + Prefixes in an item always have an "and" relationship, so they all + have to match (cat:abc user:a_name requires the "abc" + Addressbook category and the "a_name" username), the if: allows for + some more flexibility (if:"cat:abc","user:a_name" requires + only one of them). +

    + Example: config:any if:"config:info start:[AutoMod]"," " reg:complicated regex +
  • Meta Prefixes (Behaviour)

    @@ -1114,6 +1152,12 @@
  • n: to provide a note that is ignored for matching. diff --git a/help/help.html b/help/help.html index d40239a..18eeb96 100644 --- a/help/help.html +++ b/help/help.html @@ -5,7 +5,7 @@ -

    Chatty (Version: 0.17)

    +

    Chatty (Version: 0.18)

    @@ -194,7 +194,7 @@ function getDownloads(tag) {
    @@ -569,6 +569,59 @@ +

    Run a command in a specific open channel

    +

    The /runin command runs a command in the context of a + specific open channel, as if you had entered it into the channel's + inputbox. Without this, commands usually run in the context of the + currently active channel.

    + +
    +
    /runin [channel] [command]
    +
    The channel must be a regular channel with or without leading "#" (#channelname) + or a whisper channel ($username).
    +
    The command can be anything you could enter into a chat inputbox.
    +
    + +

    Examples:

    +
    +
    /runin #chan2 /echo abc
    +
    Outputs the info message "abc" in the channel "#chan2" (if it is + open in Chatty).
    + +
    //runin #chan2 //echo Channel context: \\$(chan) -> \$(chan)
    +
    This example is entered directly into a chat inputbox and outputs + an info message about the changed channel context in "#chan2". Let's say the + command is entered in the channel "#chan1".
    +
    The command begins with two slashes (//), so it is + interpreted as an anonymous Custom Command: +
      +
    • \\$(chan) turns into \#chan1 (the \\ escaped + the backslash itself, not the $, so the replacement is performed)
    • +
    • \$(chan) turns into $(chan) (this \ actually escapes the + $, so the replacement is not performed here)
    • +
    + The result /runin #chan2 //echo Channel context: \#chan1 -> $(chan) + is run, which runs //echo Channel context: \#chan1 -> $(chan) + in "#chan2".
    +
    Yet again, the command begins with two slashes (//) and + is interpreted as an anonymous Custom Command: +
      +
    • \#chan1 turns into #chan1 (the + backslash removes any special meaning from the following + characters, which in this case is not necessary, but it you + had entered this in a whisper channel $user1 + then the $ would have had to be escaped)
    • +
    • $(chan) turns into #chan2 (this + Custom Command is run in the new channel context, so it + turns into the target channel, which does not need to be + escaped further, even if it were $user2, since + it doesn't get interpreted as a Custom Command after this)
    • +
    + The resulting command /echo Channel context: #chan1 -> #chan2 + is then run and outputs an info message. +
    +
    +

    Twitch Login [back to menu] diff --git a/index.html b/index.html index 13bafc1..97c8101 100644 --- a/index.html +++ b/index.html @@ -16,9 +16,9 @@ function loaded() { { ceiling: null, text: "$years years ago" } ] } - document.getElementById("ago").innerHTML = "Version 0.17 released "+humanized_time_span("2022/01/31", Date(), custom_date_formats)+""; + document.getElementById("ago").innerHTML = "Version 0.18 released "+humanized_time_span("2022/04/09", Date(), custom_date_formats)+""; - getDownloads("v0.17"); + getDownloads("v0.18"); slideshow_init("slideshow"); } @@ -158,7 +158,7 @@ function getDownloads(tag) {

    Download

    -

    Choose one of the following downloads of Chatty Version 0.17. For older versions or betas go to the GitHub Releases. Checksums for release files are available as SHA-256 hashes.

    +

    Choose one of the following downloads of Chatty Version 0.18. For older versions or betas go to the GitHub Releases. Checksums for release files are available as SHA-256 hashes.

    If this is your first time using Chatty check out the Getting Started Guide.

    Windows

    @@ -170,11 +170,11 @@ function getDownloads(tag) {
    -
    Download Windows Standalone (Installer) Recommended
    +
    Download Windows Standalone (Installer) Recommended
    Install into a folder of your choice and start Chatty.exe (or optionally created shortcuts).
    -
    Download Windows Standalone (.zip)
    +
    Download Windows Standalone (.zip)
    Extract the .zip into a folder of your choice and start Chatty.exe.
    @@ -182,11 +182,11 @@ function getDownloads(tag) {
    -
    Download JAR-Version (Installer)
    +
    Download JAR-Version (Installer)
    Install into a folder of your choice and start Chatty.jar (or optionally created shortcuts).
    -
    Download JAR-Version (.zip)
    +
    Download JAR-Version (.zip)
    Extract the .zip into a folder of your choice and start Chatty.jar.

    Non-Windows

    -

    For OS other than Windows (e.g. Linux or MacOS) you will need to download the JAR-Version (.zip) and must have Java 8 or later installed on your system. Extract the .zip into a folder of your choice and start Chatty.jar.

    +

    For OS other than Windows (e.g. Linux or MacOS) you will need to download the JAR-Version (.zip) and must have Java 8 or later installed on your system. Extract the .zip into a folder of your choice and start Chatty.jar.

    Contact

    If you have any feedback or questions feel free to contact me. You can join the Chatty Discord preferred, write me an E-Mail or use Twitter.