Warning: session_start(): open(/var/lib/php/sessions/sess_3kmsc87cil8vreo7mvuj21791f, 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
abstract sclass DynSayAndInputBot > DynPrintLog {
S input;
transient AbstractSayAndInputBot2 bot;
void submitInput {
setField(input := trim(input));
print("User: " + input);
if (bot != null)
bot.inputQueue.add(input);
}
visual centerAndSouthWithMargins(super.visualize(),
dm_textFieldAndSubmit_q('input, 'submitInput, focusOnShow := true));
void runBot(AbstractSayAndInputBot2 bot) {
this.bot = bot;
runBot();
}
void runBot {
bot.say = (VF1) vfPrintWithPrefix("Bot: ");
thread "Bot" {
callF(bot);
print("\n[end]");
}
}
start {
logModuleOutput();
}
}