Implement a method for handling tokens for server templates and OpenAI functions for the bot dependencies.