Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
05edf3b
commit 551412a
Showing
64 changed files
with
33,110 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 14 | ||
VisualStudioVersion = 14.0.23107.0 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HotShotBot", "HotShotBot\HotShotBot.csproj", "{89A21A04-6B16-4EC3-ACC3-4D90962A40EA}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|x86 = Debug|x86 | ||
Release|x86 = Release|x86 | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{89A21A04-6B16-4EC3-ACC3-4D90962A40EA}.Debug|x86.ActiveCfg = Debug|x86 | ||
{89A21A04-6B16-4EC3-ACC3-4D90962A40EA}.Debug|x86.Build.0 = Debug|x86 | ||
{89A21A04-6B16-4EC3-ACC3-4D90962A40EA}.Release|x86.ActiveCfg = Release|x86 | ||
{89A21A04-6B16-4EC3-ACC3-4D90962A40EA}.Release|x86.Build.0 = Release|x86 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
Binary file not shown.
Binary file not shown.
122 changes: 122 additions & 0 deletions
122
HotShotBot v1.0/HotShotBot v1.0/HotShotBot/HotShotBot.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">x86</Platform> | ||
<ProductVersion>8.0.30703</ProductVersion> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<ProjectGuid>{89A21A04-6B16-4EC3-ACC3-4D90962A40EA}</ProjectGuid> | ||
<OutputType>Exe</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>HotShotBot</RootNamespace> | ||
<AssemblyName>HotShotBot</AssemblyName> | ||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> | ||
<TargetFrameworkProfile>Client</TargetFrameworkProfile> | ||
<FileAlignment>512</FileAlignment> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> | ||
<PlatformTarget>x86</PlatformTarget> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> | ||
<PlatformTarget>x86</PlatformTarget> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<ApplicationIcon>bot.ico</ApplicationIcon> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<StartupObject> | ||
</StartupObject> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="AIMLbot, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> | ||
<SpecificVersion>False</SpecificVersion> | ||
<HintPath>.\AIMLbot.dll</HintPath> | ||
</Reference> | ||
<Reference Include="CuteRobot, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> | ||
<SpecificVersion>False</SpecificVersion> | ||
<HintPath>.\CuteRobot.dll</HintPath> | ||
</Reference> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | ||
<SpecificVersion>False</SpecificVersion> | ||
<HintPath>.\System.Speech.dll</HintPath> | ||
</Reference> | ||
<Reference Include="System.Xml.Linq" /> | ||
<Reference Include="System.Data.DataSetExtensions" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Xml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="Program.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Content Include="AIMLbot.dll" /> | ||
<Content Include="bot.ico" /> | ||
<Content Include="config\DefaultPredicates.xml" /> | ||
<Content Include="config\GenderSubstitutions.xml" /> | ||
<Content Include="config\Person2Substitutions.xml" /> | ||
<Content Include="config\PersonSubstitutions.xml" /> | ||
<Content Include="config\Settings.xml" /> | ||
<Content Include="config\Splitters.xml" /> | ||
<Content Include="config\Substitutions.xml" /> | ||
<Content Include="System.Speech.dll" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="aiml\AI.aiml" /> | ||
<None Include="aiml\Atomic.aiml" /> | ||
<None Include="aiml\Biography.aiml" /> | ||
<None Include="aiml\Bot.aiml" /> | ||
<None Include="aiml\Botmaster.aiml" /> | ||
<None Include="aiml\Client.aiml" /> | ||
<None Include="aiml\Computers.aiml" /> | ||
<None Include="aiml\CustomTagTest.aiml" /> | ||
<None Include="aiml\Default.aiml" /> | ||
<None Include="aiml\Emotion.aiml" /> | ||
<None Include="aiml\Food.aiml" /> | ||
<None Include="aiml\Geography.aiml" /> | ||
<None Include="aiml\History.aiml" /> | ||
<None Include="aiml\Inquiry.aiml" /> | ||
<None Include="aiml\Interjection.aiml" /> | ||
<None Include="aiml\IU.aiml" /> | ||
<None Include="aiml\Knowledge.aiml" /> | ||
<None Include="aiml\Literature.aiml" /> | ||
<None Include="aiml\Money.aiml" /> | ||
<None Include="aiml\Movies.aiml" /> | ||
<None Include="aiml\Music.aiml" /> | ||
<None Include="aiml\Personality.aiml" /> | ||
<None Include="aiml\Philosophy.aiml" /> | ||
<None Include="aiml\Pickup.aiml" /> | ||
<None Include="aiml\Predicates.aiml" /> | ||
<None Include="aiml\Reduce.aiml" /> | ||
<None Include="aiml\Reductions.aiml" /> | ||
<None Include="aiml\Salutations.aiml" /> | ||
<None Include="aiml\Science.aiml" /> | ||
<None Include="aiml\Stack.aiml" /> | ||
<None Include="aiml\Stories.aiml" /> | ||
<None Include="aiml\That.aiml" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | ||
Other similar extension points exist, see Microsoft.Common.targets. | ||
<Target Name="BeforeBuild"> | ||
</Target> | ||
<Target Name="AfterBuild"> | ||
</Target> | ||
--> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
using System; | ||
using AIMLbot; | ||
using System.Speech.Synthesis; | ||
|
||
|
||
|
||
namespace HotShotBot | ||
{ | ||
|
||
public class HotShotBot | ||
{ | ||
|
||
const string UserId = "consoleUser"; | ||
private Bot AimlBot; | ||
private User myUser; | ||
|
||
public HotShotBot() | ||
{ | ||
|
||
//------I added this code just coz I love that Light Green Geeky Looking Console ;-)------ | ||
//Console.BackgroundColor = ConsoleColor.Blue; | ||
Console.ForegroundColor = ConsoleColor.Green; | ||
//---------------------------------------------------------------------------------------- | ||
|
||
AimlBot = new Bot(); | ||
myUser = new User(UserId, AimlBot); | ||
Console.Title = "HotShotBot v1.0 - By Vivek Yadav (www.Shellvhack.com)"; | ||
Initialize(); | ||
} | ||
|
||
// Loads all the AIML files in the \AIML folder | ||
public void Initialize() | ||
{ | ||
AimlBot.loadSettings(); | ||
AimlBot.isAcceptingUserInput = false; | ||
AimlBot.loadAIMLFromFiles(); | ||
AimlBot.isAcceptingUserInput = true; | ||
} | ||
|
||
// Given an input string, finds a response using AIMLbot lib | ||
public String getOutput(String input) | ||
{ | ||
Request r = new Request(input, myUser, AimlBot); | ||
Result res = AimlBot.Chat(r); | ||
return (res.Output); | ||
} | ||
} | ||
class Program | ||
{ | ||
static HotShotBot bot; | ||
static void Main(string[] args) | ||
{ | ||
string input="start"; | ||
while (input!="exit" ) | ||
{ | ||
|
||
bot = new HotShotBot(); | ||
Console.Write("You: "); | ||
input = Console.ReadLine(); | ||
var output = bot.getOutput(input); | ||
|
||
//Console.WriteLine(input); | ||
Console.WriteLine("Bot: " + output); | ||
|
||
//Make the bot Speak | ||
SpeechSynthesizer synthesizer = new SpeechSynthesizer(); | ||
synthesizer.Volume = 100; // 0...100 | ||
synthesizer.Rate = -2; // -10...10 | ||
|
||
// Synchronous | ||
synthesizer.Speak(output); | ||
|
||
// Asynchronous | ||
// synthesizer.SpeakAsync(output); | ||
|
||
} | ||
} | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
HotShotBot v1.0/HotShotBot v1.0/HotShotBot/Properties/AssemblyInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
using System.Runtime.InteropServices; | ||
|
||
// General Information about an assembly is controlled through the following | ||
// set of attributes. Change these attribute values to modify the information | ||
// associated with an assembly. | ||
[assembly: AssemblyTitle("HotShotBot")] | ||
[assembly: AssemblyDescription("A reasearch oriented ChatBot By Vivek yadav of Shellvhack.com")] | ||
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyCompany("www.shellvhack.com")] | ||
[assembly: AssemblyProduct("HotShotBot v1.0")] | ||
[assembly: AssemblyCopyright("Copyright © www.shellvhack.com")] | ||
[assembly: AssemblyTrademark("HotShotBot")] | ||
[assembly: AssemblyCulture("")] | ||
|
||
// Setting ComVisible to false makes the types in this assembly not visible | ||
// to COM components. If you need to access a type in this assembly from | ||
// COM, set the ComVisible attribute to true on that type. | ||
[assembly: ComVisible(false)] | ||
|
||
// The following GUID is for the ID of the typelib if this project is exposed to COM | ||
[assembly: Guid("d61bf686-a42e-4a50-8389-fd8e1d8cd4a9")] | ||
|
||
// Version information for an assembly consists of the following four values: | ||
// | ||
// Major Version | ||
// Minor Version | ||
// Build Number | ||
// Revision | ||
// | ||
// You can specify all the values or you can default the Build and Revision Numbers | ||
// by using the '*' as shown below: | ||
// [assembly: AssemblyVersion("1.0.*")] | ||
[assembly: AssemblyVersion("1.0.0.0")] | ||
[assembly: AssemblyFileVersion("1.0.0.0")] |
Binary file not shown.
Binary file not shown.
11 changes: 11 additions & 0 deletions
11
HotShotBot v1.0/HotShotBot v1.0/HotShotBot/bin/Debug/Bot.vshost.exe.manifest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> | ||
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/> | ||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> | ||
<security> | ||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"> | ||
<requestedExecutionLevel level="asInvoker" uiAccess="false"/> | ||
</requestedPrivileges> | ||
</security> | ||
</trustInfo> | ||
</assembly> |
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+22.2 KB
HotShotBot v1.0/HotShotBot v1.0/HotShotBot/bin/Debug/HotShotBot.vshost.exe
Binary file not shown.
11 changes: 11 additions & 0 deletions
11
HotShotBot v1.0/HotShotBot v1.0/HotShotBot/bin/Debug/HotShotBot.vshost.exe.manifest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> | ||
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/> | ||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> | ||
<security> | ||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"> | ||
<requestedExecutionLevel level="asInvoker" uiAccess="false"/> | ||
</requestedPrivileges> | ||
</security> | ||
</trustInfo> | ||
</assembly> |
Oops, something went wrong.