For more information about this project and GSoC Progress please refer to GSoC Wiki
admin.username = <admin-username>
admin.password = <admin-password>
chatbot.baseUrl = <https-url-to-access-the-bot>
chatbot.fb.appSecret = <secret>
chatbot.fb.verifyToken = <token>
chatbot.fb.pageAccessToken = <access-token>
cloudant.url = <couchdb-url>
cloudant.username = <couchdb-username>
cloudant.password = <couchdb-password>
cloudant.chatDB = <couchdb-chatdb-name>
cloudant.feedbackDB = <couchdb-feedbackdb-name>
cloudant.explorerDB = <couchdb-explorerdb-name>
tmdb.apiKey = <tmdb-api-key>
wolfram.apiKey = <wolfram-alpha-api-key>
logging.level.com.github.messenger4j=<log-level>
spring.thymeleaf.cache = false
spring.devtools.livereload.enabled = true
logging.level.com.github.messenger4j = DEBUG
mvn clean install
java $JAVA_OPTS -Dserver.port=$PORT -jar target/*.jar // $PORT is the port number you want the server to run in for example 8080
mvn spring-boot:run
node/node node_modules/.bin/webpack --watch
Add the following snippet to the <head>
section of the webpage where you want to embed the ChatBot.
<script type="text/javascript">
(function() {
var URL = "https://chat.dbpedia.org"
window.onload = function() {
var iframe = document.createElement("iframe");
iframe.setAttribute("src", URL + "/embed");
iframe.setAttribute("frameBorder", 0);
iframe.style.zIndex = 10000000;
iframe.style.height = "100%";
iframe.style.width = "40%";
iframe.style.position = "fixed";
iframe.style.bottom = "20px";
iframe.style.right = "20px";
iframe.style.display = "none";
document.body.appendChild(iframe);
window.addEventListener("message", receiveMessage, false);
function receiveMessage(event) {
if(event.origin == URL && event.data == "dbpedia-chatbot-embed-loaded") {
iframe.style.display = "block";
}
}
}
})();
</script>