botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Bot Framework Emulator for MacOS

Open artyomtrityak opened this issue 10 years ago • 28 comments

Any plans on Bot Framework Emulator for MacOS ?

artyomtrityak avatar Mar 31 '16 00:03 artyomtrityak

+1 Would love this as well

yiweiang avatar Mar 31 '16 03:03 yiweiang

Thanks for the feedback guys we'll work out some solution for Mac developers on the emulation side. Can I ask what language binding you're planning to use? With the Node version you can actually use the TextBot class to run your bot locally from a console window. While not the emulator it gets you pretty close.

Stevenic avatar Mar 31 '16 05:03 Stevenic

@Stevenic i'm using node.js and using TextBot class for testing right now. There are some issues in Mac but i think they are not related to BotBuilder itself - skype for Mac does not support bots right now.

Also do you have any info about group chat bot support? It is in roadmap right now?

artyomtrityak avatar Mar 31 '16 05:03 artyomtrityak

So to test on OSX you would skip using the restify server? So:

var restify = require('restify');
var builder = require('botbuilder');

// Create bot and add dialogs
var bot = new builder.TextBot()
bot.add('/', function (session) {
    session.send('Hello World');
});

bot.listenStdin();

?

swennemans avatar Mar 31 '16 14:03 swennemans

@artyomtrityak I wasn't aware that bots didn't work on Skype for Mac but sounds believable. As for when group chat will come in for Skype its on my todo list. The Skype guys still have some work todo on their side like they need to add @mention support for group chats so we were going to meet in a week or two to discuss how group chat support should work in Bot Builder. No timelines yet because of that.

Stevenic avatar Mar 31 '16 22:03 Stevenic

@swennemans If you look at the todoBot examples you'll see how I moved the dialog out to a dialogs folder and then create separate botConnectorBot.js & textBot.js files that load the same dialogs in two different modes. Basically you can create 2 versions of your bot, one for when its run from the cloud and one for when its run locally. For testing on Mac this would be my current recommendation.

Stevenic avatar Mar 31 '16 22:03 Stevenic

We are thinking about ways we can easily port our emulator to the Mac. We'll come up with something soon.

Stevenic avatar Mar 31 '16 22:03 Stevenic

@Stevenic thanks!

artyomtrityak avatar Mar 31 '16 22:03 artyomtrityak

Would be cool if the emulator was open sourced 😃

rlingineni avatar Mar 31 '16 23:03 rlingineni

@Stevenic awesome. Thanks for your reply. I'm really excited to dive deeper :)

swennemans avatar Apr 01 '16 06:04 swennemans

I just published a new guide for how to debug a bot locally on Mac/Linux using VSCode. You don't technically have to use VSCode but the same principals will apply regardless of your setup.

http://docs.botframework.com/builder/node/guides/debug-locally-with-vscode

Stevenic avatar Apr 01 '16 08:04 Stevenic

Oh nice. So does that only work for node.js? Is there any solution for building bots using C# and mac?

rlingineni avatar Apr 01 '16 08:04 rlingineni

BTW :I am refactoring the emulation part of the code into an external lib so people can create other platform UX for it.

tomlm avatar Apr 02 '16 03:04 tomlm

I just pushed a new emulator and along with that there is a mono based console version of the emulator which works on Linux and Mac. Go to http://docs.botframework.com/connector/tools/bot-framework-emulator/#navtitle at the bottom of the page for instructions on installing it.

tomlm avatar Apr 09 '16 02:04 tomlm

Just wanted to second @rlingineni's question regarding using C# as the development language on Linux / MacOS? Is that possible?

Also, failing that. Couldn't we *NIX folks just run a small Azure instance as build machine?

dominickm avatar Apr 14 '16 14:04 dominickm

Absolutely, just use Mono. There are no azure dependencies, you just need a web server running someplace.

tomlm avatar Apr 14 '16 21:04 tomlm

Does anyone have a sample repo of the ChatBot on OSX using C#? I still can't get it to work correctly on my Mac.

rlingineni avatar Apr 20 '16 22:04 rlingineni

@rlingineni @tomlm is correct. If you just have a web server running somewhere and you can use C#. I've got it running with the Mac as my primary workstation using Visual Studio Code for the editor.

If no one beats me to it, I'll make a sample repo for you this weekend.

dominickm avatar May 02 '16 17:05 dominickm

@rlingineni I realize that my answer wasn't perfect. I first created the project in Visual Studio on Windows but did the work on MacOS and ran a Mono web server.

I don't think there's a Visual Studio code template or path for creating a new project in Linux or OS X in C#? Is there @tomlm

dominickm avatar May 03 '16 02:05 dominickm

hi, just want to confirm the mono emulator does not support Attachment(e.g. image, card)? I was expecting it to give me some JSON response for inspection but it gives me error instead.

longsangstan avatar Jun 18 '16 05:06 longsangstan