1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Using kChat Slash Commands
This guide concerns messages that start with /
on kChat, interpreted as slash commands.
Executing a Slash Command on kChat
To access slash commands on kChat:
- Click in the editing field within a channel
- Enter a
/
sign (slash) followed by the attached command - Validate to send the command
If you type only the / sign, a modal will appear with the commands that can be executed, such as going offline, for example.
Here is a table of the main commands:
command | description |
---|---|
/away | sets your status to "away" |
/offline | sets your status to "offline" |
/online | sets your status to "online" |
/dnd | sets your status to "do not disturb" |
/code | used to format text as code |
/collapse | hides the content of the item in the message |
/expand | expands the content of the item in the message |
/echo | repeats the text following the command |
/header | displays a header in a message |
/purpose | sets or displays the channel description |
/rename | renames the current channel |
/leave | leaves the current channel |
/mute | mutes the current channel |
/reminders | manages reminders |
/search | searches messages and other content |
/settings | opens settings |
/shortcuts | displays keyboard shortcuts |
Create a Custom Slash Command
Prerequisites
- not being an external user (they won't see the Integrations menu)
To create a custom slash command:
- open the kChat app (on your device or from a browser at the URL kchat.infomaniak.com)
- click on the chevron to the right of your kChat organization's name
- click on Integrations
- click on Slash Command
- click the blue button to Add a Command
- configure the slash command (name, trigger (without the /), expected content type, action to execute*, etc. including if the command should appear in the help modal mentioned in the above chapter)
- Save the command
* This may include calling an external API, running a script, displaying a specific response, etc. For this, you will typically need an external script or application that will respond to the commands. You can also define additional parameters for the command, such as dropdown options, checkboxes, etc., depending on your needs.
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.