Coder Social home page Coder Social logo

paladique / azuresample-spaceybot Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 10.64 MB

A bot created with the Bot Framework Composer that displays a random spacey image from NASA

License: MIT License

JavaScript 46.00% PowerShell 2.40% Shell 1.91% C# 17.29% HTML 32.40%
bot-framework azure bot-framework-composer bot-emulator

azuresample-spaceybot's Introduction

SpaceyBot

A bot built with the Bot Framework Composer.

โ—Building with the SDK? Check out this bot sample!

What it does

Prompts the user and displays a random image from NASA's Astronomy Picture of the Day open API. Options in Bot Framework Composer have generated this bot in C#.

Instructions

  1. Install the Bot Framework Composer

  2. Clone/download this repo.

  3. Open the Bot Framework Composer, select "Open" and open the folder you cloned/downloaded.

  4. Go to the NASA API Site and fill out the form to receive an API key to your email.

  5. Replace the api key placeholder with the NASA api key that has been generated for you.

    • replacing the api key placeholder in bot framework composer
  6. Select "Start Bot" at the top right of the composer. You can test the bot in the Composer with web chat, or install and use the Bot Emulator to test it.

    • options for running a bot in the bot framework composer

Running the code

Options in Bot Framework Composer have generated this bot in C# and can be ran and tested with the Bot Emulator.

  1. Open this cloned/downloaded folder in VS Code
    1. Or you can navigate to the folder in your favorite command line tool
  2. Install the Bot Emulator.
  3. Open the terminal and run the following command: dotnet run --project .\azuresample_spaceybot.csproj
  4. If you see a few status messages in your terminal, the bot is running successfully!
  5. Make note of this message and copy the link: Now listening on: http://localhost:#### (#### will be a set of 4 numbers)
  6. Open the Bot Emulator, select "Open Bot" and paste the copied link from the last step into the "Bot URL" text box
  7. Add /api/messages to the end of the pasted link so it reads: http://localhost:####/api/messages
  8. Select Connect to start the bot

setting up a bot in the bot framework emulator

Refer to this documentation if you are feeling lost!

Read more

azuresample-spaceybot's People

Contributors

paladique avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.