Explain how to create a bot script