corebot | A bot to trigger Rundeck and Jenkins jobs from Slack | Bot library
kandi X-RAY | corebot Summary
kandi X-RAY | corebot Summary
Trigger your Rundeck or Jenkins jobs from Slack. Why would you want this? Check out ChatOps.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of corebot
corebot Key Features
corebot Examples and Code Snippets
version: '1'
actions:
services:
jobId: 9374f1c8-7b3f-4145-8556-6b55551fb60f
template: deploy services {version} to {environment}
version: '1'
actions:
services:
driver: jenkins
jobId: my-jenkins-job
template: deploy web {vers
# System configuration
---
version: '1'
system:
defaults:
driver: jenkins
showJobOutput: false
showJobOutcome: true
runAsTriggerUser: false
options:
myVar:
value: someDefaultValue
requestHeaders:
Cooki
SLACK_AUTH_TOKEN="CHANGEME"
SLACK_CHANNELS="corebot"
ACTION_CONFIG_FILE="/path/to/actions.yaml"
RUNDECK_API_TOKEN="CHANGEME"
RUNDECK_BASE_URL="http://rundeck:4440"
JENKINS_BASE_URL="http://localhost:8080"
JENKINS_USERNAME="CHANGEME"
JENKINS_PASSWOR
Community Discussions
Trending Discussions on corebot
QUESTION
i am currently working on automated unit tests inside the Microsoft Bot Framework 4. From there, i want to check simple conversational statements from the bot. In the CoreBot Tests sample (https://docs.microsoft.com/en-us/azure/bot-service/unit-test-bots?view=azure-bot-service-4.0&tabs=csharp) is demonstrated how it is possible to do that but for me, my bot isnt using dialogs (as far as i know).
My question here is now, how can i unit test simple Question/Answer Statements? My main goal is to unit test my QnA Maker Knowledge Bases.
...ANSWER
Answered 2021-Mar-18 at 17:43I can't help you with the syntax for C#, but I have some tests in my nodejs bot that are not dialogs and this may help you. Essentially, you just create a TestAdapter and pass that with an activity to your bot. For example, here is part of my dispatchBot.test.js file:
QUESTION
We have a bot running in Azure (Web App Bot) that I'm trying to embed on a website. The bot is based of the Bot Builder V4 SDK Tamplate CoreBot v4.9.2. At first I used the iframe
to embed the bod. This worked but didn't provide the features we need, so now im changing it to use DirectLine.
My code on the webpage looks like this:
...ANSWER
Answered 2020-Sep-03 at 01:02If the ib and ob values displayed by the *.bot endpoint are false this means the bot and the Direct Line app service extension are unable to connect to each other.
Make sure you verify below things:
- Double check the code for using named pipes has been added to the bot.
- Confirm the bot is able to start up and run at all. Useful tools are Test in WebChat, connecting an additional channel, remote debugging, or logging.
- Restart the entire Azure App Service the bot is hosted within, to ensure a clean start up of all processes.
Please check troubleshooting guide, it seems updated today. (still old date reflected some how, not sure why)
QUESTION
I'm trying to learn Chatbox programming with the Microsoft Bot Framework. I bought a book from 2018 titled "Programming the Microsoft Bot Framework" by Joe Mayo. I feel the book is an easy read and was giving me a good background, but when I try to do the examples using Visual Studio 2019 the names of the methods in the book don't match the ones produced by visual studio, and so now I'm confused.
Book: They start a project using the "Bot Application" template, with the entry point to the chatbox being a file in the Controllers folder called "MessageController.cs". The file contains a method public async Task Post(Activity activity)
Latest version of Bot Framework with VS 2019: There is no "Bot Application" template, but rather the choice to select a new "EchoBot", "EmptyBot", or "CoreBot". In all 3 choices, "MessageController.cs" is not present in the file list, but instead there is a "BotController.cs" file. This file does not come with a Post function, but rather has public async Task PostAsync()
I'm fine with the different template choices between versions, but confused as to if there's a difference between PostAsync and Post methods? Are these just new naming conventions? Is the framework significantly different between 2018 and 2020?
...ANSWER
Answered 2020-May-01 at 07:47The Bot Framework has significantly changed between version 3 and version 4. November 2019, the Bot Framework V4 SDK went generally available.
The following documentation could help understanding the differences between v3 and v4 bots.
QUESTION
I got a System.AggregateException
after running my Core Bot C# sample.
In the Startup.cs
I added the class as followes:
ANSWER
Answered 2020-Apr-21 at 22:51Your setup is odd...you're making your ChitChatRecognizer
, which is a bot (it derives from ActivityHandler
), and then later DI into either a dialog or another bot, I imagine? Also it seems you want to treat QnAMaker (the recognizer for QnA) as a singleton, but you initialize it in OnMessageActivityAsync
--meaning it won't initialize unless your bot receives a message activity, so if you're trying to initialize something else the requires a QnAMaker
, it won't exist on startup.
Anyways, to answer the question of how do you insert QnAMaker
into corebot, if you wanted to add QnAMaker
as a singleton, you can add it as singleton in startup, then call it from your bot code when you need to make a call to QnAMaker.
Add QnAMaker to Corebot Sample
In Startup.ConfigureServices
:
QUESTION
Do you know how to add more bots within the same project? I think it should be possible because of the commend in CoreBot from BotBuilderSample. Comment
However I have no idea how to do it. Have you managed to do it and can share steps that's need to be done to accomplish it? startup class
Thanks, Jan
...ANSWER
Answered 2020-Apr-02 at 09:18Defining multiple bots in the same project is not possible. You can only attach one implementation to the IBot interface. Additionally when the project is deployed, its URL will only be recognized as one bot. You can extend the capabilities of your bot by adding more controllers but it will still register as a single bot.
If you still want to do this somehow, I'd suggest creating a menu context as the initial response of your bot. Give the user an option of choosing what functionality (different bot) they are going to use. From that point just separate the flows throughout your bot.
QUESTION
I am trying to send a greeting message at the moment the web is loaded and the chatbot is initialized. It works with the emulator but it doesn't seem to work that straight forward with on the webchat channel.
I have researched and found a couple of useful links but I am missing something...
Display Welcome Message in v4 Bot Framework Bot (C# + .Net Core Web Application)
https://github.com/microsoft/BotFramework-WebChat/issues/1397
So far this is my code:
default.htm
...ANSWER
Answered 2020-Feb-25 at 14:04Your issue looks related to the name of the event. The WebChat is sending an event named requestWelcomeDialog
, where your bot code is looking for an event named webchat/join
. If you change one of them, it should work.
There are two possibilities for handling welcome messages.
Conversation Update. DirectLine broadcasts a conversation update event by default, however this is not preferred. This event will end up in
OnMembersAddedAsync
.Custom Event. Send a custom event using WebChat v4, as described in this sample. This event will end up in
OnEventActivityAsync
.
My advice would be to upgrade to the new WebChat (v4) and to have a look at this sample. The ConversationUpdate has limitations and you are more flexible by sending a custom event.
QUESTION
I am running botframework v4 code and testing it using chatbot emulator . Curently i am unable to reach the code flow where the luis intent code is present in [MainDialog.cs][1] .
Below is the line in MainDialog.cs file:
...ANSWER
Answered 2020-Feb-12 at 17:28The V4 MessageController should rarely, if ever, change from the skeleton. In this line:
QUESTION
I am trying to learn Bot Framework 4, I use the builtin CoreBot template defined here: https://github.com/microsoft/BotBuilder-Samples/blob/master/generators/dotnet-templates/README.md
I modified the MainDialog.cs so that it will call my custom dialog instead of the included dialog:
Before:
...ANSWER
Answered 2020-Jan-16 at 00:02You need to add MyDialog to dialog list in MainDialog. In you MainDialog you need to inject MyDialog instance and add it to dialog list using AddDialog(mydialoginstance);
Similar to how you have added bookingDialog
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install corebot
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page