To load a script into your bot go to your bot's Admin Console (click on the gear icon or menu on the bot's page).
Then click on the Scripts page (script icon or menu).
Click on the upload icon to upload a script file, or the add (green plus) icon the create a new script and paste the text.