Adds global functions for bot administration

Adds extern "C" block to define global-level bot administration hooks;
they're not name-mangled by g++, so Python's C FFI can detect and run
them easily.