Warning: session_start(): open(/var/lib/php/sessions/sess_o0b0a4n9ubqschs6p0bj0mi57k, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
cmodule Cruddie > DynPrintLogAndEnabled {
!include #1027628 // HTTP+HTTPS servers
transient WebChatBot chatBot;
S myLink() { ret "https://cruddie.site/"; }
S botLink() { ret appendWithSlash(myLink(), "bot"); }
start-thread {
dm_restartOnFieldChange enabled();
if (!enabled) ret;
chatBot = new WebChatBot;
chatBot.baseLink = botLink();
chatBot.thoughtBot = new O {
S initialMessage() { ret "Hello"; }
S answer(S s) { ret "I hear you"; }
};
start_webServers(javaxSecretDir("cruddie.site/keystore.p12"), "botcompany");
}
O webServe(S uri, SS params) {
S cookie = serveHttp_cookieHandling();
new Matches m;
if (startsWith(appendSlash(uri), "/bot/", m))
ret chatBot.html("/" + m.rest(), params, cookie);
ret hhtml(hhead_title("CRUDDIE")
+ hbody(hfullcenter(
p(hsnippetimage(#1102905))
+ p("Chat bot coming up.")
+ p("Server temperature is " + dm_cpuTemperature())
+ hscript_src(botLink())
)));
}
}