Make the bot work with a json config
Adopt example json for testing purposes
Adopt to newest version
clean up merge conflict and global var assignment