bots

Botpress native NLU languages supported

狂风中的少年 提交于 2020-01-06 05:51:05
问题 Is there a list of languages supported by Botpress Native NLP? Is Czech languages supported by default? Or only by using third party as Watson? 回答1: I assume you were using early Botpress 11. In those versions, botpress was using fasttext to train word vectors on the data you were providing with a basic whitespace tokenizer. Couple of pre-trained languages were offered but not Czech sadly. In the newer version of Botpress (12.x), NLU structure seems to have drastically changed and more

How Find Emojis By Name In Discord.js

♀尐吖头ヾ 提交于 2020-01-06 05:37:08
问题 So I have been utterly frustrated these past few days because I have not been able to find a single resource online which properly documents how to find emojis when writing a discord bot in javascript. I have been referring to this guide whose documentation about emojis seems to be either wrong, or outdated: https://anidiots.guide/coding-guides/using-emojis What I need is simple; to just be able to reference an emoji using the .find() function and store it in a variable. Here is my current

Can I show more than one button/option in teams using cards?

独自空忆成欢 提交于 2020-01-06 05:26:20
问题 I am trying to put 8 options in a card but I need to scroll to get other options horizontally. Is there it possible to make it available in a single card 回答1: Currently you can add only 6 actions directly in an adaptive card. If you want to send more than 6 buttons here are two things you could try: Use ActionSets which would add 6 buttons in each set.In this way you can show 12 buttons in a card. Please try this out in the AdaptiveCards Designer. You could try using AdaptiveCard.ShowCard

Account Linking Failed

坚强是说给别人听的谎言 提交于 2020-01-05 07:30:34
问题 When user hits account linking button, it opens a new window. Is that ok ? Than, in that window i'm rendering html page with account/password fields. When user provide that credentials, i'm checking in database and return user e-mail if user exists. That's ok. I'm creating redirect url this way : var redirect_uri = getUrlParameter('redirect_uri'); console.log(redirect_uri); var account_linking_token = getUrlParameter('account_linking_token'); console.log(account_linking_token); My

QnA Maker - Runtime Error: Authorization Failed

旧巷老猫 提交于 2020-01-05 07:07:14
问题 I keep getting the attached runtime error in QnA maker. I could access the Knowledge base fine after creating it but after about an hour i started getting the below error. Error Example I have tried everything including trying to delete the knowledge base, create a new one etc and it doesn't delete or create just throws the same error. Please can someone give me some advice or help. Microsoft recommended I submit a question here. Thanks Chris 回答1: I faced the smae issue, and to solve it I

Referring to a member as a variable in Discord.py

别来无恙 提交于 2020-01-05 06:51:11
问题 I'm trying to make a discord bot that runs chat filter; my end goal is for a bot to have a list of words and if one of those words from the list is said, the bot will add a tally to a member and if they get like 3 then a command to kick from server will run. Creating the list is easy and I know how to write the command to kick someone, but I am absolutely lost on how I would get the bot to track values for each member.... Would I need to set the member's ID as a variable? Any help is

How to send a message to a specific channel

为君一笑 提交于 2020-01-05 05:28:06
问题 I'm trying to send a message to a specific channel with my Discord bot, which is in several servers. I want the bot to pick up on a message from one server and send a message to my personal server, in a specific channel, but I can't get it to 'find' the channel. Has the API changed or something? I tried npm install discord.js to update too. Code: if (message.author.id == 'XXXXX' && !mess.includes("Dank") && message.channel.id != 'XXXXX') { bot.channels.get('XXXXX').send('memes'); } I tried a

How to send attachment in bot framework in web embedded bot using c#

放肆的年华 提交于 2020-01-05 04:18:07
问题 I want to send a csv file attachment to to user in bot. I am using the Microsoft bot framework C# bot builder SDK, using the web chat channel. I've the following to send a csv file to the user: var csvPath = "D://ProjecteFile/Results.csv"; //Attachment attachment = new Attachment(); //attachment.ContentType = "text/csv"; //attachment.ContentUrl = csvPath; //attachment.Name = "click this link to get server report"; //return attachment; I also tried using a hero card var heroCard = new HeroCard

Can Bot Framework handle Facebook Audio Message

不羁岁月 提交于 2020-01-04 05:46:30
问题 How can my bot (Bot Framework Microsoft) handle an audio message from facebook. How it's received in the Post Message in MessagesController? So I can call the SpeechToText API? Does the data go all the way to 回答1: Your Post controller takes an Activity as an argument. The Audio message will show up in the Attachment array as a link to the audio location provided by Facebook. You can pass that to the Bing Speech API. One thing to note that the ContentType provided by Facebook is "video/mp4"

Messenger persistent menu not visible

ⅰ亾dé卋堺 提交于 2020-01-04 03:38:21
问题 I'm currently developing a Facebook messenger bot. However, I can't attach a persistent menu to it. I read the requirements here: The user must be on Messenger v106 or above on iOS or Android. The page the bot is attached to must be published. The bot must be set to "public" in the developer console. The bot must have passed the approval process for pages_messaging permission And all those are met. When I set the menu, I receive this feedback from Facebook: Array ( [result] => success )