adds support for daemonizing the bot

This commit adds support for daemonizing the bot, which is a quite important feature (for a bot)