Skip to content

Overview

Vu Bao Nhu edited this page Oct 26, 2019 · 2 revisions

IntroductionOverviewTriggersRepliesConversationsTopicsPlugins and Services


Let's write our first few lines of bot scripts!

In your text editor, create a new file and write the following in it:

! version 1

+ hello bot
- Hello, human!

Save it in your project working directory as hello.bot, then execute botscript cli on that directory:

BotScript Interactive Mode
-----------------------------------------
Version: 1.30
Working directory: /home/user/botscript

You are now chatting with the BotScript bot. Type a message and press `Enter` to send it.
When finished, type 'quit' to exit the program. Type 'help' for other instructions.

You>

At the prompt, type "Hello bot" and press Enter. The bot should respond with "Hello, human!"


Continue to Triggers

Clone this wiki locally