# Misc

## get\_version()

#### **Usage**

`get_version()`

#### **Returns**

Bot version as a string.

```
21.1.9
```

## select\_character(name)

Selects a character by its name.

#### **Usage**

`select_character('Character_Name')`

#### **Returns**

`None`

## set\_profile(name)

Changes the profile for the character.

#### **Usage**

`set_profile('name')`

#### **Returns**

`True` if the profile was changed otherwise `False`.

## get\_profile()

#### **Returns**

`string` with the profile name (can be empty for the default profile) or `None` if you are not logged in.

## disconnect()

Disconnects from the server. Does not change relog settings.

#### **Usage**

`disconnect()`

#### **Returns**

`None`

## show\_notification(title, message)

Shows a tray notification if the bot is minimized.

#### **Usage**

`show_notification('title', 'message')`

#### **Returns**

`True` if the arguments are correct.

`False` if the arguments are incorrect.

## play\_wav(path)

Plays a WAV file.

#### **Usage**

`play_wav('C:/my_wav_file.wav')`

#### **Returns**

`None`

## minimize() / unminize()

Minimizes or unminimizes the bot.

#### Usage

`minimize()`

`unminimize()`

#### Returns

`None`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://plugins.phbot.org/phbot-api/misc.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
