-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.m
117 lines (97 loc) · 3.92 KB
/
main.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
\
\ Copyright © 2021 '34th Team Ai4Impact' all rights reserved.
\
\ @author: 34th Team Ai4Impact
\ @date: 31 Jul 2021
\
\ A brief description of this program.
\
terra/chat
terra/chat/app
terra/chat/log
include ./topics/main-chat.m
include ./topics/learn.m
include ./topics/quiz.m
include ./topics/calculator.m
include ./topics/tipstrick.m
include ./topics/facts.m
include ./style.m
: welcomeMsg
q{
<title> Delot | Dynamic Electricity Bot </title>
<p> Hai sob, perkenalkan aku<b style="font-style:italic;">Delot</b>,<i>Dynamic Electricity Bot</i></p>
<img src="https://lh4.googleusercontent.com/gk-TB1Vu42MhfXHGVxRQy9vRbkF-5aBFaCu2oRgU9a9uioUEPfc58A2Of5mTPMlRQfLc4zdIaZclLgMd2W0g3H3qC7qNTI5yMHZ6so844E6PEg7h49BqdoU3kiEZ8lp7mo7bRS6y" width="95%" length="95%" />
<p> Disini aku mau bantuin kamu belajar tentang Listrik Dinamis!</p>
<p> Apa kamu siap belajar bareng<b style="font-style:italic;"> Delot</b>?</p>
<br>
}q
;
idk: I don't understand the question.
: test
\ NOTE: Add your questions to test here.
"siap" answer . cr
"kuis" answer . cr
"siapp dong" answer . cr
"D. 2,4 A" answer . cr
"selanjutnya" answer . cr
"kaca" answer . cr
"selanjutnya" answer . cr
"dan (3)" answer . cr
"selanjutnya" answer . cr
"240" answer . cr
"selanjutnya" answer . cr
"52" answer . cr
"selanjutnya" answer . cr
;
: update-log
\ this name needs to match the name in publish:
log: bot
;
: publish
\ IMPORTANT - edit this part. It's the name of your bot.
publish: delot
\ What your bot says at first.
init: ${welcomeMsg} ${ "Siap ✊" btn }
\ ------ PROPERTIES OF THE CHATBOT USER INTERFACE --------
\ The background image. Should be tileable/repeatable.
\ Or you can use a HTML color (see https://www.w3schools.com/colors/colors_picker.asp)
background: https://lh3.googleusercontent.com/uC42hFUrkJRzVDn_8QFSKphEZfaGjKbWCuxUb6ZsO_USJBf7cUPbQuEvinKhzBM5SpVuEVIshTyPuHoqIRAt2S_jjQHG2riESxdHXa6MlKTZRfjt79JKahPU4z1tYXEb1Pem8cpz
\ background: https://lh6.googleusercontent.com/4Ay4697AYuATK82QxL5k2XTiLlqvjBFOZEzkQDqTtx6lu6kxMf2xL50DSYzkMjq2zq6MGQ97NY9W7T3Nu7alQT4egL1GWunIvFYFWUATUijLp2vC71dZ35H_ZRuo1qu4hTXxz6AA
\ Image of the avatar to use.
\ avatar: https://i.ibb.co/hCGZDwt/Logo.png
avatar: https://lh4.googleusercontent.com/-PJwxy_xp9GF3Tui_71r50XVeov0fR7fGnV0kwG9n_UrU18hKO9yLZuMHrq0CwoRMnhUE4yZP5dqAzvgPxTDRzGeFP29V5yPnYX2UmFQlNAmD0VYajxb9jQEDM-z3e_CyLYg3mFD
\ Optional border on avatar
\ avatar-border: solid #AAA 1px
avatar-border: none
\ Google font to import.
import-font: 'https://fonts.googleapis.com/css2?family=Hahmlet:wght@300&display=swap'
\ Font to use in bubbles
bubble-font: 'Hahmlet', serif;
\ Font Color & Background of bot bubble
bubble-bot-color: #333
bubble-bot-background: #EEE
\ Font Color & Background for user bubble
bubble-user-color: white
bubble-user-background: #ddc1a7
\ Other bubble properties
\ bubble-border: solid blue 1px
bubble-border: solid #ddc1a7 2.5px
bubble-radius: 16
bubble-font-size: 16
\ Max Width of bot bubble, in pixels
bot-bubble-width: 250
\ You can limit the number of responses displayed
limit: 1
\ Optional properties of the "send" button.
\ Here's a sample from flaticon.com
\ <div>Icons made by <a href="https://www.flaticon.com/authors/freepik" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a></div>
send-button-image-url: https://i.ibb.co/YBBf4vL/telegram-xxl-1.png
send-button-image-style: padding-left:5px;
\ send-button-image-url: https://autocaffe.io/chat/play.png
\ send-button-image-style: none
\ ----- PROPERTIES OF THE URL LINK FOR SOCIAL MEDIA --------
\ These will be visible when you share the link to your bot.
title: Delot
description: Dynamic Electricity Bot
thumbnail: https://lh4.googleusercontent.com/-PJwxy_xp9GF3Tui_71r50XVeov0fR7fGnV0kwG9n_UrU18hKO9yLZuMHrq0CwoRMnhUE4yZP5dqAzvgPxTDRzGeFP29V5yPnYX2UmFQlNAmD0VYajxb9jQEDM-z3e_CyLYg3mFD
;