> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mira.party/llms.txt
> Use this file to discover all available pages before exploring further.

# AI, search & reference

> Gemini, Google, translation, dictionaries, maths, weather, code execution and media lookups.

## AI chat

<CodeGroup>
  ```javascript Gemini theme={null}
  !gemini explain quantum tunnelling simply
  ```

  ```javascript ChatGPT theme={null}
  !chatgpt write a haiku about discord bots
  ```
</CodeGroup>

`gemini` aliases: `googleai`, `ai`, `ask`. `chatgpt` aliases: `gpt`, `prompt`.

**Context is remembered across messages**, so you can follow up without repeating yourself:

```
!ai what's the capital of peru
> Lima.
!ai what's the population
> Lima has roughly 10 million people.
```

## Search

<CodeGroup>
  ```javascript Web theme={null}
  !google how to center a div
  ```

  ```javascript Images theme={null}
  !images sunset
  ```
</CodeGroup>

Aliases: `search`, `g` / `image`, `img`, `i`.

### Reverse image search

```javascript theme={null}
!google reverse (attach an image)
```

Aliases: `reverseimage`, `ris`, `sauce`.

For Pinterest's reverse search, which is better for finding aesthetic sources, use [`!lens`](/social/pinterest#reverse-image-search).

## Translation

```javascript theme={null}
!translate spanish hello there
!translate hola
```

With no target language it detects and translates to English. Aliases: `tr`, `trans`. Also `!google translate`.

## Dictionaries

<CodeGroup>
  ```javascript Standard theme={null}
  !define ephemeral
  ```

  ```javascript Urban Dictionary theme={null}
  !urbandictionary sus
  ```
</CodeGroup>

Aliases: `definition`, `dictionary` / `urband`, `urban`, `ud`.

## Maths and computation

```javascript theme={null}
!wolfram integral of x^2 from 0 to 5
!wolfram population of japan
```

Wolfram Alpha — handles maths, unit conversion, physical constants and general factual queries. Aliases: `math`, `w`.

## Code execution

<CodeGroup>
  ```javascript Run code theme={null}
  !piston print("hello")
  ```

  ```javascript Available languages theme={null}
  !piston runtimes
  ```
</CodeGroup>

Runs code in a sandboxed environment. Aliases: `compile`, `build`, `eval`, `run`. Wrap the code in a fenced code block with a language tag for reliable detection.

## Weather

```javascript theme={null}
!weather london
!weather 90210
```

Current conditions and forecast. Alias: `wttr`.

## Movies and TV

<CodeGroup>
  ```javascript A movie theme={null}
  !movie inception
  ```

  ```javascript A show theme={null}
  !tvshow severance
  ```

  ```javascript Cast theme={null}
  !movie cast inception
  ```

  ```javascript Reviews theme={null}
  !movie reviews inception
  ```

  ```javascript Similar theme={null}
  !movie similar inception
  ```
</CodeGroup>

Powered by TMDB. Aliases: `tmdb` / `tv`, `show`.

### Trakt

If you use Trakt to track your watching:

```javascript theme={null}
!trackt connect
!trackt
!trackt history
!trackt stats
!trackt leaderboard
```

`!trackt` shows what you're currently watching or last watched; `leaderboard` shows the same for everyone in the server. `!trackt trending` and `!trackt popular` don't need an account.

Aliases: `trakt`.

## Lyrics

```javascript theme={null}
!lyrics some song
```

Genius search. Aliases: `lyric`, `lyr`, `ly`, `genius`. For the currently playing track, `!lastfm lyrics` or `!spotify lyrics`.

## Sports

```javascript theme={null}
!football
!basketball
!baseball
!hockey
!soccer
```

Scores, stats and betting lines. Aliases: `nfl`, `fb` / `nba`, `bb` / `mlb` / `nhl` / `futbol`.

<AccordionGroup>
  <Accordion title="Leagues">
    | Command                    | League                     |
    | -------------------------- | -------------------------- |
    | `football`                 | NFL                        |
    | `football college`         | College Football           |
    | `basketball`               | NBA                        |
    | `basketball women`         | WNBA                       |
    | `basketball college`       | Men's College Basketball   |
    | `basketball college women` | Women's College Basketball |
    | `baseball`                 | MLB                        |
    | `hockey`                   | NHL                        |
    | `soccer`                   | Premier League             |
    | `soccer laliga`            | La Liga                    |
    | `soccer seriea`            | Serie A                    |
    | `soccer bundesliga`        | Bundesliga                 |
    | `soccer ligue1`            | Ligue 1                    |
    | `soccer mls`               | MLS                        |
    | `soccer ucl`               | Champions League           |
  </Accordion>

  <Accordion title="Betting odds">
    Most leagues have an `odds` subcommand with spread, moneyline, over/under and public betting percentages:

    ```javascript theme={null}
    !football odds
    !basketball odds lakers
    ```

    Aliases: `public`, `odd`.
  </Accordion>
</AccordionGroup>

## Command reference

| Command                          | Aliases                    | Description          |
| -------------------------------- | -------------------------- | -------------------- |
| `gemini <prompt>`                | `googleai`, `ai`, `ask`    | Chat with Gemini     |
| `chatgpt <prompt>`               | `gpt`, `prompt`            | Chat with ChatGPT    |
| `google <query>`                 | `search`, `g`              | Web search           |
| `google images <query>`          | `image`, `img`, `i`        | Image search         |
| `google reverse [attachment]`    | `ris`, `sauce`             | Reverse image search |
| `translate [language] [text]`    | `tr`, `trans`              | Translate text       |
| `define <word>`                  | `definition`, `dictionary` | Dictionary           |
| `urbandictionary <word>`         | `urban`, `ud`              | Urban Dictionary     |
| `wolfram <expression>`           | `math`, `w`                | Wolfram Alpha        |
| `piston <code>`                  | `run`, `eval`              | Execute code         |
| `piston runtimes`                | `languages`, `langs`       | Available languages  |
| `weather <location>`             | `wttr`                     | Weather forecast     |
| `movie <query>`                  | `tmdb`                     | Movie details        |
| `tvshow <query>`                 | `tv`, `show`               | TV show details      |
| `lyrics <query>`                 | `lyric`, `genius`          | Song lyrics          |
| `trackt [member]`                | `trakt`                    | Trakt watch status   |
| `football` / `basketball` / etc. | `nfl` / `nba`              | Sports scores        |
