> For the complete documentation index, see [llms.txt](https://mediocraty-itself.gitbook.io/rusttools/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mediocraty-itself.gitbook.io/rusttools/discord-slash-commands/smart-switch-commands.md).

# Smart switch commands

## - Adding smart switch

`/switch add <switch_name> <switch_id>` - adds switch to the data of saved switches.

<figure><img src="https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2Fppd8Ol5V5oTIWcgbn33N%2Fimage.png?alt=media&amp;token=24584ac2-8bce-41b3-a20b-fcb01849012d" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2FrPQ5GjE6M1DVqxgWYNAS%2Fimage.png?alt=media&amp;token=66201d08-9243-44c0-aac1-a401eb308d64" alt=""><figcaption></figcaption></figure>

<mark style="color:yellow;">Learn about getting switch id</mark> [<mark style="color:blue;">here</mark>](/rusttools/in-game-commands/smart-switch-commands.md#getting-smart-switch-id)<mark style="color:yellow;">.</mark>

## - Deleting smart switch

`/switch remove <switch_name>`- removes switch to the data of saved switches.

<figure><img src="https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2FOny6bF205So4jUPNPM21%2Fimage.png?alt=media&amp;token=a2ccc6e9-1aed-4cab-b93e-cdacbbe071f2" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2FE4MZmV8czueDcXNDP83t%2Fimage.png?alt=media&amp;token=d2f0b638-9942-4e38-bef7-943c4707cfd3" alt=""><figcaption></figcaption></figure>

## - Renaming smart switch&#x20;

`/switch rename <old_switch_name> <new_switch_name>` - renames switch in list of switches

<figure><img src="https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2FDL10NzVVQo0l22imZ7ej%2Fimage.png?alt=media&amp;token=2fe1c736-0a82-4c65-a9de-5ade751aa7ab" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2FLhf5MqKpJMQiVS7YDzJb%2Fimage.png?alt=media&amp;token=b2953adf-b101-473b-af23-410ab65e78dc" alt=""><figcaption></figcaption></figure>

## - Listing all saved switches

`/switch list` - lists all your saved switches

<figure><img src="https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2FhuC0fjCJSAOVRc2NGu5j%2Fimage.png?alt=media&amp;token=69464bac-aaf0-47db-88a6-9a69139402c6" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2FupPjxRZOO8ZfXD3KGJZx%2Fimage.png?alt=media&amp;token=1a1b2041-0e40-495c-87aa-7b357802f023" alt=""><figcaption></figcaption></figure>

<sup><mark style="color:yellow;">NOTE:  If bot cannot get information of the switch bot will output<mark style="color:yellow;"></sup>   ![](https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2FJcO3SOu8teTOZMYatpxN%2Fimage.png?alt=media\&token=17871489-e100-43ec-bbe1-e88d1c195683)  <sup><mark style="color:yellow;">as switch status.<mark style="color:yellow;"></sup>

<sup><mark style="color:yellow;">Bot loses acces to switch if :<mark style="color:yellow;"></sup>&#x20;

<sup><mark style="color:yellow;">- Wrong data (Invalid ID or wrong server connected)<mark style="color:yellow;"></sup>\ <sup><mark style="color:yellow;">- Account which is bot connected through is not authed on TC which covers the smart switch<mark style="color:yellow;"></sup>\ <sup><mark style="color:yellow;">- Switch is destroyed<mark style="color:yellow;"></sup>&#x20;

<br>

## - Checking status of 1 switch

`/switch info <switch_name>` - return switch data inforamtion and current state.

<figure><img src="https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2FOzkjoxzhiZuq6y21XHSG%2Fimage.png?alt=media&amp;token=67cddca1-e109-4714-bc14-6d66d5090cfb" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2F0BrA5u1IaUsGguJB8BdD%2Fimage.png?alt=media&amp;token=fb8c8133-e3b3-4002-9057-d258c303d0ac" alt=""><figcaption></figcaption></figure>

## - Change state of switch

`/switch toggle <switch_name> (True/False)` - change the value of switch to opposite or force to one of the states(<mark style="color:yellow;">True/False - optional</mark>)

<figure><img src="https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2F5cXUkrpWWzvkLCY0dvqv%2Fimage.png?alt=media&amp;token=68dc0254-fca5-47c2-9bee-83c2e1531480" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2Fm4qVBVcTXUCEWrjFnqz9%2Fimage.png?alt=media&amp;token=b731903c-da73-4638-8466-8d3912b6b504" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2FfSN7oZ5Pu2Ef60bEyX4S%2Fimage.png?alt=media&amp;token=e443cb73-2f72-4e9e-a14e-99322c769fb0" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2714295573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH2xPiUNoVsVJGOZJTB7R%2Fuploads%2FxLxCijfSmnsxsbrBOuvd%2Fimage.png?alt=media&amp;token=361a3517-b699-4216-a9ec-89b11170aca1" alt=""><figcaption></figcaption></figure>
