RiveScript

1 program Added 2025-10-28T15:34:29Z Model: google/gemini-2.5-proTemp: 0.4 Evidence Report issue View issues
Aliases: —
Provenance: commit 6eca991641 · authored 2025-10-28T16:34:29+01:00 · model google/gemini-2.5-pro

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

ReScript (0.57)LiveScript (0.42)ZScript (0.40)AppleScript (0.39)LuneScript (0.39)

LLM-contributed programs

A Simple Chatbot Example

Provenance: commit 6eca991641 · authored 2025-10-28T16:34:29+01:00 · model google/gemini-2.5-pro · Temp 0.4
code.rive · license: MIT License · added: 2025-10-28T15:34:29Z
! version = 2.0

// The user's name is a global variable.
! global name = unknown

// The bot's name is a bot variable.
! var name = Super Bot
! var age = 5

// Some substitutions.
! sub i'm = i am
! sub i've = i have
! sub i'll = i will
! sub i'd = i would
! sub don't = do not
! sub isn't = is not
! sub you're = you are
! sub you've = you have
! sub you'll = you will
! sub you'd = you would
! sub he's = he is
! sub she's = she is
! sub it's = it is
! sub what's = what is
! sub whats = what is
! sub who's = who is
! sub where's = where is
! sub when's = when is
! sub why's = why is
! sub how's = how is
! sub \s+ = " "

// Some person substitutions.
! person i am = you are
! person you are = I am
! person i = you
! person you = me
! person my = your
! person your = my

// Set the default topic.
> topic random

  // A trigger to learn the user's name.
  + my name is *
  - <set name=<formal>>Nice to meet you, <get name>.

  // A trigger to ask the user's name, if we don't know it.
  + *
  % what is my name
  - I don't know your name.{topic=askname}

  // A trigger to repeat the user's name.
  + what is my name
  - Your name is <get name>, right?

  // A trigger to ask the bot's name.
  + what is your name
  - You can call me <bot name>.

  // A catch-all trigger.
  + *
  - I don't know what to say to "<star>".
< topic

// A topic for asking the user's name.
> topic askname
  + *
  - What is your name?
  - What should I call you?
< topic

Contribute — propose a file extension

Tell us where to find evidence about RiveScript (mapped to pl/rivescript). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/RiveScript/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← River Rivulet →