@trusted_cmd<EOL><INDENT>def do_load_base64(self, line):<DEDENT>
cookie = self.cookie<EOL>executor = self.bot._executor<EOL>def source_good():<EOL><INDENT>self.print_response(status=RESPONSE_CODE_OK, cookie=cookie)<EOL>executor.clear_callbacks()<EOL><DEDENT>def source_bad(tb):<EOL><INDENT>if called_good:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>self.print_response(status=RESPONSE_REVERTED, keep=True, cookie=cookie)<EOL>self.print_response(tb.replace('<STR_LIT:\n>', '<STR_LIT>'), cookie=cookie)<EOL>executor.clear_callbacks()<EOL><DEDENT>called_good = False<EOL>source = str(base64.b64decode(line))<EOL>publish_event(SOURCE_CHANGED_EVENT, data=source, extra_channels="<STR_LIT>")<EOL>self.bot._executor.load_edited_source(source, good_cb=source_good, bad_cb=source_bad)<EOL>
load filename=(file)
load base64=(base64 encoded)

Send new code to shoebot.

If it does not run successfully shoebot will attempt to role back.

Editors can enable livecoding by sending new code as it is edited.