Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vscode
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# osDFS-Chatbot
A community-driven bot that aims to be as simple as possible to serve humans queries about osDFS.
![Image](https://user-images.githubusercontent.com/40069230/88557934-82dd8600-d048-11ea-865a-e5abf711a9eb.jpeg)
121 changes: 0 additions & 121 deletions intents.json

This file was deleted.

10 changes: 10 additions & 0 deletions osDFS Container/Actions/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM rasa/rasa-sdk:latest

# The Rasa SDK image runs as non-root user by default. Hence, you have to switch
# back to the `root` user if you want to install additional dependencies
USER root

RUN pip3 install recognizers-text-suite

# Switch back to a non-root user
USER 1001
Binary file not shown.
39 changes: 39 additions & 0 deletions osDFS Container/Actions/actions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This files contains your custom actions which can be used to run
# custom Python code.
#
# See this guide on how to implement these action:
# https://rasa.com/docs/rasa/core/actions/#custom-actions/


# This is a simple example for a custom action which utters "Hello World!"

from typing import Any, Text, Dict, List

from rasa_sdk import Action, Tracker
from rasa_sdk.executor import CollectingDispatcher


# class ActionHelloWorld(Action):

# def name(self) -> Text:
# return "action_hello_world"

# def run(self, dispatcher: CollectingDispatcher,
# tracker: Tracker,
# domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:
# dispatcher.utter_message(text="hello world new message response here")

# return []

class ActionHelloWorld(Action):

def name(self) -> Text:
return "action_coding_response"

def run(self, dispatcher: CollectingDispatcher,
tracker: Tracker,
domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:
print("Building chatbot for the rasa enjoy coding")
dispatcher.utter_message(text="hello world new message response here")

return []
Binary file added osDFS Container/FrontEnd osDFS/.DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions osDFS Container/FrontEnd osDFS/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
venv
README.md
1 change: 1 addition & 0 deletions osDFS Container/FrontEnd osDFS/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
osdfs.in
13 changes: 13 additions & 0 deletions osDFS Container/FrontEnd osDFS/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Base Images
FROM python:3

# Set the Working Dir
WORKDIR /usr/src/osDFS/FrontEnd

# Copy the requirement file
COPY requirements.txt .

# install the packages
RUN pip install --no-cache-dir -r requirements.txt

COPY . .
4 changes: 4 additions & 0 deletions osDFS Container/FrontEnd osDFS/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# osDFS-V2
[![Netlify Status](https://api.netlify.com/api/v1/badges/800db2b6-9311-4dd4-8c10-62c43e73cb9b/deploy-status)](https://app.netlify.com/sites/osdfs/deploys)

It is the 2nd version of osDFS's webpage.
Binary file not shown.
Binary file not shown.
50 changes: 50 additions & 0 deletions osDFS Container/FrontEnd osDFS/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
from flask import Flask, render_template

app = Flask(__name__)

@app.route("/")
def home():
return render_template("index.html")

@app.route("/index")
def index():
return render_template("index.html")

@app.route("/community")
def community():
return render_template("community.html")

@app.route("/ccp")
def cpp():
return render_template("ccp.html")

@app.route("/partners")
def partners():
return render_template("partners.html")

@app.route("/events")
def events():
return render_template("events.html")

@app.route("/opportunities")
def opportunities():
return render_template("oppertunities.html")

@app.route("/gallery")
def gallery():
return render_template("gallery.html")

@app.route("/blog")
def blog():
return render_template("blog.html")

@app.route("/contact")
def contact():
return render_template("contact.html")

@app.route("/test")
def test():
return render_template("child.html")

if __name__ == "__main__" :
app.run(host="0.0.0.0")
Loading