Skip to content

Commit 4f371a5

Browse files
committed
Added Sample Plugin
1 parent c72fe2f commit 4f371a5

22 files changed

Lines changed: 858 additions & 10 deletions

AI_AgentModel.vb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Public Class AI_AgentModel
2020
''' <returns></returns>
2121
Public Function GET_RESPONSE(ByRef UserInput As String) As String
2222
GET_RESPONSE = GetPluginResponse(UserInput, PreviousUserInput, PreviousResponse)
23+
If GET_RESPONSE = "" Then GET_RESPONSE = "Excuse me? Please, Rephrase?"
2324
End Function
2425
Private Function GetPluginResponse(ByRef UserInput As String, ByRef PrevUSerInput As String, ByRef PrevResponse As String) As String
2526
GetPluginResponse = ExecutePlugins(UserInput, ScanPlugins)

ApplicationEvents.vb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Namespace My
2+
' The following events are available for MyApplication:
3+
' Startup: Raised when the application starts, before the startup form is created.
4+
' Shutdown: Raised after all application forms are closed. This event is not raised if the application terminates abnormally.
5+
' UnhandledException: Raised if the application encounters an unhandled exception.
6+
' StartupNextInstance: Raised when launching a single-instance application and the application is already active.
7+
' NetworkAvailabilityChanged: Raised when the network connection is connected or disconnected.
8+
Partial Friend Class MyApplication
9+
End Class
10+
End Namespace

Chatbot_2020_Tutorial.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Chatbot_2020_Tutorial", "Ch
77
EndProject
88
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "AI_Contracts", "AI_Contracts\AI_Contracts.vbproj", "{FFD99FAF-EAE8-41AA-BEAA-66CEDF5C5951}"
99
EndProject
10+
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "SamplePlugin", "SamplePlugin\SamplePlugin.vbproj", "{06547035-4097-49D3-AE77-9FEC47253CEE}"
11+
EndProject
1012
Global
1113
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1214
Debug|Any CPU = Debug|Any CPU
@@ -21,6 +23,10 @@ Global
2123
{FFD99FAF-EAE8-41AA-BEAA-66CEDF5C5951}.Debug|Any CPU.Build.0 = Debug|Any CPU
2224
{FFD99FAF-EAE8-41AA-BEAA-66CEDF5C5951}.Release|Any CPU.ActiveCfg = Release|Any CPU
2325
{FFD99FAF-EAE8-41AA-BEAA-66CEDF5C5951}.Release|Any CPU.Build.0 = Release|Any CPU
26+
{06547035-4097-49D3-AE77-9FEC47253CEE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{06547035-4097-49D3-AE77-9FEC47253CEE}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{06547035-4097-49D3-AE77-9FEC47253CEE}.Release|Any CPU.ActiveCfg = Release|Any CPU
29+
{06547035-4097-49D3-AE77-9FEC47253CEE}.Release|Any CPU.Build.0 = Release|Any CPU
2430
EndGlobalSection
2531
GlobalSection(SolutionProperties) = preSolution
2632
HideSolutionNode = FALSE

Chatbot_2020_Tutorial.vbproj

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@
4747
<PropertyGroup>
4848
<OptionInfer>On</OptionInfer>
4949
</PropertyGroup>
50+
<PropertyGroup>
51+
<ApplicationIcon>Icon_SpydazBrain.ico</ApplicationIcon>
52+
</PropertyGroup>
5053
<ItemGroup>
5154
<Reference Include="System" />
5255
<Reference Include="System.Data" />
@@ -75,6 +78,7 @@
7578
</ItemGroup>
7679
<ItemGroup>
7780
<Compile Include="AI_AgentModel.vb" />
81+
<Compile Include="ApplicationEvents.vb" />
7882
<Compile Include="Form_Chat_UI.designer.vb">
7983
<DependentUpon>Form_Chat_UI.vb</DependentUpon>
8084
</Compile>
@@ -97,6 +101,12 @@
97101
<DependentUpon>Settings.settings</DependentUpon>
98102
<DesignTimeSharedInput>True</DesignTimeSharedInput>
99103
</Compile>
104+
<Compile Include="SplashScreen.Designer.vb">
105+
<DependentUpon>SplashScreen.vb</DependentUpon>
106+
</Compile>
107+
<Compile Include="SplashScreen.vb">
108+
<SubType>Form</SubType>
109+
</Compile>
100110
<Compile Include="SyS.vb" />
101111
</ItemGroup>
102112
<ItemGroup>
@@ -109,6 +119,9 @@
109119
<CustomToolNamespace>My.Resources</CustomToolNamespace>
110120
<SubType>Designer</SubType>
111121
</EmbeddedResource>
122+
<EmbeddedResource Include="SplashScreen.resx">
123+
<DependentUpon>SplashScreen.vb</DependentUpon>
124+
</EmbeddedResource>
112125
</ItemGroup>
113126
<ItemGroup>
114127
<None Include="My Project\Application.myapp">
@@ -128,5 +141,12 @@
128141
<Name>AI_Contracts</Name>
129142
</ProjectReference>
130143
</ItemGroup>
144+
<ItemGroup>
145+
<Content Include="Icon_AI_Brain.ico" />
146+
<Content Include="Icon_SpydazBrain.ico" />
147+
</ItemGroup>
148+
<ItemGroup>
149+
<Folder Include="Plugins\" />
150+
</ItemGroup>
131151
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
132152
</Project>

Icon_AI_Brain.ico

196 KB
Binary file not shown.

Icon_SpydazBrain.ico

170 KB
Binary file not shown.

My Project/Application.Designer.vb

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

My Project/Application.myapp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
33
<MySubMain>true</MySubMain>
4-
<MainForm>Form_Chat_UI</MainForm>
4+
<MainForm>SplashScreen</MainForm>
55
<SingleInstance>true</SingleInstance>
6-
<ShutdownMode>0</ShutdownMode>
6+
<ShutdownMode>1</ShutdownMode>
77
<EnableVisualStyles>true</EnableVisualStyles>
88
<AuthenticationMode>0</AuthenticationMode>
99
<SaveMySettingsOnExit>true</SaveMySettingsOnExit>

My Project/AssemblyInfo.vb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ Imports System.Runtime.InteropServices
99
' Review the values of the assembly attributes
1010

1111
<Assembly: AssemblyTitle("Chatbot_2020_Tutorial")>
12-
<Assembly: AssemblyDescription("")>
13-
<Assembly: AssemblyCompany("")>
14-
<Assembly: AssemblyProduct("Chatbot_2020_Tutorial")>
15-
<Assembly: AssemblyCopyright("Copyright © 2020")>
16-
<Assembly: AssemblyTrademark("")>
12+
<Assembly: AssemblyDescription("Basic Chat bot Framwork (With Plugins)")>
13+
<Assembly: AssemblyCompany("SpydazWeb AI")>
14+
<Assembly: AssemblyProduct("SpydazWeb AI")>
15+
<Assembly: AssemblyCopyright("SpydazWeb AI Copyright © 2020")>
16+
<Assembly: AssemblyTrademark("SpydazWeb AI TM © 2020")>
1717

18-
<Assembly: ComVisible(False)>
18+
<Assembly: ComVisible(True)>
1919

2020
'The following GUID is for the ID of the typelib if this project is exposed to COM
2121
<Assembly: Guid("826dca42-eeea-4bfe-8f42-bfe8ea2371c9")>

SamplePlugin/App.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
5+
</startup>
6+
</configuration>

0 commit comments

Comments
 (0)