Skip to content

Instantly share code, notes, and snippets.

kenjosling

Block or report user

Report or block kenjosling

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View about.js
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
}
View app_snippet.js
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;
View .env
# 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****
View about.json
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "Container",
"items": [
{
"type": "TextBlock",
You can’t perform that action at this time.