Knowledge base

1000 FAQs, 500 tutorials and instructional videos. Here, there are only solutions!

Using kChat slash commands

This guide covers messages that start with / on kChat interpreted as slash commands.

 

Execute a slash command on kChat

To access slash commands on kChat:

  1. Click in the composition field within a channel.
  2. Enter a / (slash or forward slash) and the attached command.
  3. Confirm to send the command.

If you type only the / sign, a modal appears with the commands that can be executed, such as going offline, for example.

Here is a table of the main commands:

commanddescription
/awaymarks your status as "away"
/offlinemarks your status as "offline"
/onlinemarks your status as "online"
/dndmarks your status as "do not disturb"
/codeused to format text as code
/collapsehides the content of the element in the message
/expandexpands the content of the element in the message
/echorepeats the text following the command
/headerdisplays a header in a message
/purposedefines or displays the channel description
/renamerenames the current channel
/leaveleaves the current channel
/mutemutes the current channel
/remindersmanages reminders
/searchsearches for messages and other content
/settingsopens the settings
/shortcutsdisplays keyboard shortcuts

 

Create a custom slash command

Prerequisites

  • Not be an external user (they will not see the menu Integrations).

To create a custom slash command:

  1. Click here to access the Web kChat app (online service kchat.infomaniak.com) or open the desktop kChat app (desktop application on macOS / Windows / Linux).
  2. Click on the New icon next to your kChat organization name.
  3. Click on Integrations
  4. Click on Slash command
  5. Click the blue button to Add a command
  6. Configure the slash command (name, trigger (without the /), expected content type, action to execute*, etc., including whether the command should appear in the help modal mentioned in the chapter above).
    • * This can include calling an external API, running a script, displaying a specific response, etc. For this, you will generally need an external script or application that will respond to the commands. You can also set additional parameters for the command, such as dropdown options, checkboxes, etc., depending on your needs.
  7. Save the command.
  8. Make sure to test the command to ensure it works as expected.

 

Remember that creating custom slash commands may require additional programming skills, especially if you need to integrate custom features or interactions with external systems. Also, make sure to follow security best practices when creating these commands to avoid potential security vulnerabilities.


Has this FAQ been helpful?