bot and algo: add my_init() and my_done()

add my_init() to initialize some necessary variables for the algorithm
my_done() to do something after actions are all done

Signed-off-by: AceLan Kao <acelan@acelan.idv.tw>