Mon 21 Jul 22:43:21 CEST 2025
This commit is contained in:
parent
106c391d5a
commit
edec7c9e7d
16
js/ui/botui/examples/hello-world-webpack/app.js
Normal file
16
js/ui/botui/examples/hello-world-webpack/app.js
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
import BotUI from 'botui'
|
||||||
|
import Vue from 'vue'
|
||||||
|
|
||||||
|
// window.Vue = Vue; // use either this
|
||||||
|
var botui = new BotUI('hello-world', {
|
||||||
|
vue: Vue // or this
|
||||||
|
});
|
||||||
|
|
||||||
|
botui.message.add({
|
||||||
|
content: 'Hello World from bot!'
|
||||||
|
});
|
||||||
|
|
||||||
|
botui.message.add({
|
||||||
|
human: true,
|
||||||
|
content: 'Hello World from human!'
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user