Skip to content

Instantly share code, notes, and snippets.

var fs = require('fs');
class About {
constructor(botName, iconUrl, companyName, botVersion, userGuideUrl) {
this.BotName = botName,
this.IconUrl = iconUrl,
this.CompanyName = companyName,
this.BotVersion = botVersion,
this.UserGuideUrl = userGuideUrl
}
bot.dialog('Show.Help', [
function (session) {
if (session.message && session.message.value) {
session.endDialog();
switch (session.message.value.choice) {
case 'Submit.Feedback':
builder.Prompts.text(session, 'TODO: Write code to submit feedback');
break;
}
return;
# Items to add to the About Card
BotName=Extermitron
IconUrl=https://****.file.core.windows.net/images/bot_icon.png?sv=****
CompanyName=MacroAgitant
BotVersion=v0.1
UserGuideUrl=https://***.file.core.windows.net/docs/Bot%20User%20Guide.pdf?sv****
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "Container",
"items": [
{
"type": "TextBlock",