Skip to content

Command: ask#


Summary#

Command Default Level Global Only?
ask 1 no
  • Requires openai plugin to be loaded and setting enabled on each channel

Description#

  • Asks question to OpenAI and responds with answer
  • Response mode can be changed per-client via askmode command
  • Per-client conversations can be continued using the and command

Usage#

Enable channel openai setting

@Empus | y modchan openai on
 @yolk | done.

ask <question>

Examples#

Ask question to OpenAI

@Empus | y ask What is the definition of an IRC bot?
 @yolk | Empus: An IRC bot is a program designed to automate tasks and interact with users on an Internet Relay Chat (IRC) 
network. It can perform various functions such as moderating channels, providing information, and executing commands. IRC bots 
are typically written in scripting languages and can be customized to serve specific purposes.

Natural Conversation

When cfg(ask:cmdnick) is enabled, OpenAI queries can be sent in natural conversation form by using the bot's nickname as the prefix. Note that enabling this setting will mean botnick prefixes will not work for other commands.

Empus | yolk: What is the meaning of life?
 yolk | Empus: To make sure your phone battery dies right when you need it the most. To spend all your money on avocado 
toast and never own a house. To constantly wonder if you left the oven on.
Expanded Examples

The below shows expanded examples using the ask, and, and askmode commands for different behaviour:

@Empus | yolk: what is the meaning of life?
 @yolk | Empus: Subjective and philosophical question with no definitive answer.

@Empus | y askmode act like a pirate
 @yolk | done. user-specific ask mode set for #armour. use 'askmode' on its own to clear.

@Empus | yolk: what is the meaning of life?
 @yolk | Empus: "Arr, treasure and adventure!" or "To sail the seven seas!" or "Yo ho ho, rum!"

@Empus | y askmode use sarcasm and humour
 @yolk | done. user-specific ask mode set for #armour. use 'askmode' on its own to clear.

@Empus | yolk: what is the meaning of life?
 @yolk | Empus: The meaning of life? Oh, it's definitely a complicated equation involving quantum physics, unicorns, 
 and a sprinkle of fairy dust.

@Empus | yolk: and tell me more about this sprinkle
 @yolk | Empus: Ah, the magical sprinkle of fairy dust! It holds the power to make your dreams come true, cure all ailments, 
and bring everlasting happiness. Just be careful not to sneeze, or you might accidentally summon a unicorn army.
Spoken Responses

When the speak plugin is also loaded, responses can be provided with spoken audio mp3 files. speak can be coupled with and to continue an existing conversation in spoken form.

Empus | yolk: speak the meaning of life
 yolk | Empus: https://yolk.armour.bot/s8H1.mp3

Empus | yolk: and speak a silly answer
 yolk | Empus: https://yolk.armour.bot/lmJ3.mp3

Command Description
and Continue per-client conversation
askmode View the help for a given command
image Generate a DALL-E image from description
speak Speak the answer with an audio file