diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..35063fc --- /dev/null +++ b/.gitignore @@ -0,0 +1,54 @@ +## A streamlined .gitignore for modern .NET projects +## including temporary files, build results, and +## files generated by popular .NET tools. If you are +## developing with Visual Studio, the VS .gitignore +## https://github.com/github/gitignore/blob/main/VisualStudio.gitignore +## has more thorough IDE-specific entries. +## +## Get latest from https://github.com/github/gitignore/blob/main/Dotnet.gitignore + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg + +# Others +~$* +*~ +CodeCoverage/ + +# MSBuild Binary and Structured Log +*.binlog + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml \ No newline at end of file diff --git a/Program.cs b/Program.cs index 5c56d38..543a6e8 100644 --- a/Program.cs +++ b/Program.cs @@ -1,21 +1,50 @@ -Dictionary dialogs = new Dictionary(){ - {"pedido", "Qual é o problema com o pedido?"}, - {"atraso", "Certo, o pedido está em atraso...\nHá alguma ocorrência de atraso com esse número de pedido?"}, - {"falta", "Hum... houve falta nesse pedido. Certo, esse produto foi faturado na nota fiscal?"}, - {"resposta atraso sim", "Verifique as tarefas desta ocorrência e veja se alguma delas está dentro do prazo ou se estão todas encerradas. Se estiverem, encaminhe o caso para o suporte e aguarde a resposta."}, - {"resposta atraso nao", "Verifique com o cliente se ele ainda deseja receber o pedido.\nSe sim, abra uma ocorrência de atraso na entrega, descrevendo que o cliente deseja receber o pedido. Informe o SLA e o número de protocolo ao cliente.\nTabulação \nPrmeira categoria:Transporte \nSegunda categoria:Atraso na entrega \nMotivo:Pedido não entregue"}, - {"resposta falta sim", "Abra uma ocorrência de falta de produto:\nCategoria: Pós-compra\nSubcategoria: Falta\nMotivo: Produto faturado."}, - {"resposta falta nao", "Então o produto não consta na nota fiscal? Ou ele foi cortado?"}, - {"resposta nao consta", "Se o produto não consta na nota fiscal, então ele não foi pedido. Não é possível abrir uma ocorrência de falta de algo que não foi comprado."}, - {"resposta cortado", "Certo. Abra uma ocorrência de falta de produto:\nCategoria: Pós-compra\nSubcategoria: Falta\nMotivo: Produto não faturado."}, - {"Cadastro", "Cliente está com problema no cadastro? Qual a mensagem de erro?"}, - {"Cadastro, CPF já cadastrado", "Quando ocorre esse erro Você tem quem reprocessar no GPP \nCaso não apareceça em 5 minutos \nPrencha esse formulário \nMatricula: \nCPF: \n Nome Completo: \nData de nascimento: \n Cep: \nEndereço completo: \nE-mail: \nTelefone de contato:"}, - {"help", "Voce pode me perguntar sobre Pedidos, sobre o que fazer quando tem Atraso, se esta em Falta ou ate mesmo sobre o cadastro do cliente, caso deseje finalizar nossa conversa digite 'sair' para encerrar."} +Dictionary dialogs = new() +{ + { "pedido", "Qual é o problema com o pedido?" }, + { + "atraso", + "Certo, o pedido está em atraso...\nHá alguma ocorrência de atraso com esse número de pedido?" + }, + { + "falta", + "Hum... houve falta nesse pedido. Certo, esse produto foi faturado na nota fiscal?" + }, + { + "resposta atraso sim", + "Verifique as tarefas desta ocorrência e veja se alguma delas está dentro do prazo ou se estão todas encerradas. Se estiverem, encaminhe o caso para o suporte e aguarde a resposta." + }, + { + "resposta atraso nao", + "Verifique com o cliente se ele ainda deseja receber o pedido.\nSe sim, abra uma ocorrência de atraso na entrega, descrevendo que o cliente deseja receber o pedido. Informe o SLA e o número de protocolo ao cliente.\nTabulação \nPrmeira categoria:Transporte \nSegunda categoria:Atraso na entrega \nMotivo:Pedido não entregue" + }, + { + "resposta falta sim", + "Abra uma ocorrência de falta de produto:\nCategoria: Pós-compra\nSubcategoria: Falta\nMotivo: Produto faturado." + }, + { "resposta falta nao", "Então o produto não consta na nota fiscal? Ou ele foi cortado?" }, + { + "resposta nao consta", + "Se o produto não consta na nota fiscal, então ele não foi pedido. Não é possível abrir uma ocorrência de falta de algo que não foi comprado." + }, + { + "resposta cortado", + "Certo. Abra uma ocorrência de falta de produto:\nCategoria: Pós-compra\nSubcategoria: Falta\nMotivo: Produto não faturado." + }, + { "Cadastro", "Cliente está com problema no cadastro? Qual a mensagem de erro?" }, + { + "Cadastro, CPF já cadastrado", + "Quando ocorre esse erro Você tem quem reprocessar no GPP \nCaso não apareceça em 5 minutos \nPrencha esse formulário \nMatricula: \nCPF: \n Nome Completo: \nData de nascimento: \n Cep: \nEndereço completo: \nE-mail: \nTelefone de contato:" + }, + { + "help", + "Voce pode me perguntar sobre Pedidos, sobre o que fazer quando tem Atraso, se esta em Falta ou ate mesmo sobre o cadastro do cliente, caso deseje finalizar nossa conversa digite 'sair' para encerrar." + }, }; -Dictionary otherDialogs = new Dictionary(){ - {"erro", "Desculpe, não entendi. Pode reformular?"}, - {"farewells", "Até mais! Volte sempre que precisar. 😊"}, - {"welcome", "Olá! Meu nome é Rey. Com o que o cliente está tendo problema?"} +Dictionary otherDialogs = new() +{ + { "erro", "Desculpe, não entendi. Pode reformular?" }, + { "farewells", "Até mais! Volte sempre que precisar. 😊" }, + { "welcome", "Olá! Meu nome é Rey. Com o que o cliente está tendo problema?" }, }; void ConsoleResponse(string texto) { @@ -99,4 +128,4 @@ void ChatBot() lastResponse = response; } } -ChatBot(); \ No newline at end of file +ChatBot(); diff --git a/bin/Debug/net9.0/chatbot.deps.json b/bin/Debug/net9.0/chatbot.deps.json deleted file mode 100644 index cfff464..0000000 --- a/bin/Debug/net9.0/chatbot.deps.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "runtimeTarget": { - "name": ".NETCoreApp,Version=v9.0", - "signature": "" - }, - "compilationOptions": {}, - "targets": { - ".NETCoreApp,Version=v9.0": { - "chatbot/1.0.0": { - "runtime": { - "chatbot.dll": {} - } - } - } - }, - "libraries": { - "chatbot/1.0.0": { - "type": "project", - "serviceable": false, - "sha512": "" - } - } -} \ No newline at end of file diff --git a/bin/Debug/net9.0/chatbot.dll b/bin/Debug/net9.0/chatbot.dll deleted file mode 100644 index f94fe60..0000000 Binary files a/bin/Debug/net9.0/chatbot.dll and /dev/null differ diff --git a/bin/Debug/net9.0/chatbot.exe b/bin/Debug/net9.0/chatbot.exe deleted file mode 100644 index 686d0d5..0000000 Binary files a/bin/Debug/net9.0/chatbot.exe and /dev/null differ diff --git a/bin/Debug/net9.0/chatbot.pdb b/bin/Debug/net9.0/chatbot.pdb deleted file mode 100644 index 0078cdb..0000000 Binary files a/bin/Debug/net9.0/chatbot.pdb and /dev/null differ diff --git a/bin/Debug/net9.0/chatbot.runtimeconfig.json b/bin/Debug/net9.0/chatbot.runtimeconfig.json deleted file mode 100644 index b19c3c8..0000000 --- a/bin/Debug/net9.0/chatbot.runtimeconfig.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "runtimeOptions": { - "tfm": "net9.0", - "framework": { - "name": "Microsoft.NETCore.App", - "version": "9.0.0" - }, - "configProperties": { - "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false - } - } -} \ No newline at end of file diff --git a/obj/Debug/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs b/obj/Debug/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs deleted file mode 100644 index feda5e9..0000000 --- a/obj/Debug/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs +++ /dev/null @@ -1,4 +0,0 @@ -// -using System; -using System.Reflection; -[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")] diff --git a/obj/Debug/net9.0/apphost.exe b/obj/Debug/net9.0/apphost.exe deleted file mode 100644 index 686d0d5..0000000 Binary files a/obj/Debug/net9.0/apphost.exe and /dev/null differ diff --git a/obj/Debug/net9.0/chatbot.AssemblyInfo.cs b/obj/Debug/net9.0/chatbot.AssemblyInfo.cs deleted file mode 100644 index 4ad4223..0000000 --- a/obj/Debug/net9.0/chatbot.AssemblyInfo.cs +++ /dev/null @@ -1,22 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -using System; -using System.Reflection; - -[assembly: System.Reflection.AssemblyCompanyAttribute("chatbot")] -[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+587920de022411f180517105321f9eb3ab97604f")] -[assembly: System.Reflection.AssemblyProductAttribute("chatbot")] -[assembly: System.Reflection.AssemblyTitleAttribute("chatbot")] -[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] - -// Generated by the MSBuild WriteCodeFragment class. - diff --git a/obj/Debug/net9.0/chatbot.AssemblyInfoInputs.cache b/obj/Debug/net9.0/chatbot.AssemblyInfoInputs.cache deleted file mode 100644 index 2889929..0000000 --- a/obj/Debug/net9.0/chatbot.AssemblyInfoInputs.cache +++ /dev/null @@ -1 +0,0 @@ -04ca452922a17d7a29ea5e130c6be494391bdf9f4c3e3d85c05b342878296d34 diff --git a/obj/Debug/net9.0/chatbot.GeneratedMSBuildEditorConfig.editorconfig b/obj/Debug/net9.0/chatbot.GeneratedMSBuildEditorConfig.editorconfig deleted file mode 100644 index 6dfc5ad..0000000 --- a/obj/Debug/net9.0/chatbot.GeneratedMSBuildEditorConfig.editorconfig +++ /dev/null @@ -1,15 +0,0 @@ -is_global = true -build_property.TargetFramework = net9.0 -build_property.TargetPlatformMinVersion = -build_property.UsingMicrosoftNETSdkWeb = -build_property.ProjectTypeGuids = -build_property.InvariantGlobalization = -build_property.PlatformNeutralAssembly = -build_property.EnforceExtendedAnalyzerRules = -build_property._SupportedPlatformList = Linux,macOS,Windows -build_property.RootNamespace = chatbot -build_property.ProjectDir = C:\Users\jdonasch\Projetos\ChatBot\ -build_property.EnableComHosting = -build_property.EnableGeneratedComInterfaceComImportInterop = -build_property.EffectiveAnalysisLevelStyle = 9.0 -build_property.EnableCodeStyleSeverity = diff --git a/obj/Debug/net9.0/chatbot.GlobalUsings.g.cs b/obj/Debug/net9.0/chatbot.GlobalUsings.g.cs deleted file mode 100644 index 8578f3d..0000000 --- a/obj/Debug/net9.0/chatbot.GlobalUsings.g.cs +++ /dev/null @@ -1,8 +0,0 @@ -// -global using global::System; -global using global::System.Collections.Generic; -global using global::System.IO; -global using global::System.Linq; -global using global::System.Net.Http; -global using global::System.Threading; -global using global::System.Threading.Tasks; diff --git a/obj/Debug/net9.0/chatbot.assets.cache b/obj/Debug/net9.0/chatbot.assets.cache deleted file mode 100644 index 1f4474d..0000000 Binary files a/obj/Debug/net9.0/chatbot.assets.cache and /dev/null differ diff --git a/obj/Debug/net9.0/chatbot.csproj.CoreCompileInputs.cache b/obj/Debug/net9.0/chatbot.csproj.CoreCompileInputs.cache deleted file mode 100644 index a1ca162..0000000 --- a/obj/Debug/net9.0/chatbot.csproj.CoreCompileInputs.cache +++ /dev/null @@ -1 +0,0 @@ -20f4626c0b39506a80d937a98f0c6aa7cfae4d97d0a41dcaf7f02231e690ffea diff --git a/obj/Debug/net9.0/chatbot.csproj.FileListAbsolute.txt b/obj/Debug/net9.0/chatbot.csproj.FileListAbsolute.txt deleted file mode 100644 index 86fbae7..0000000 --- a/obj/Debug/net9.0/chatbot.csproj.FileListAbsolute.txt +++ /dev/null @@ -1,15 +0,0 @@ -C:\Users\jdonasch\Projetos\ChatBot\bin\Debug\net9.0\chatbot.exe -C:\Users\jdonasch\Projetos\ChatBot\bin\Debug\net9.0\chatbot.deps.json -C:\Users\jdonasch\Projetos\ChatBot\bin\Debug\net9.0\chatbot.runtimeconfig.json -C:\Users\jdonasch\Projetos\ChatBot\bin\Debug\net9.0\chatbot.dll -C:\Users\jdonasch\Projetos\ChatBot\bin\Debug\net9.0\chatbot.pdb -C:\Users\jdonasch\Projetos\ChatBot\obj\Debug\net9.0\chatbot.GeneratedMSBuildEditorConfig.editorconfig -C:\Users\jdonasch\Projetos\ChatBot\obj\Debug\net9.0\chatbot.AssemblyInfoInputs.cache -C:\Users\jdonasch\Projetos\ChatBot\obj\Debug\net9.0\chatbot.AssemblyInfo.cs -C:\Users\jdonasch\Projetos\ChatBot\obj\Debug\net9.0\chatbot.csproj.CoreCompileInputs.cache -C:\Users\jdonasch\Projetos\ChatBot\obj\Debug\net9.0\chatbot.sourcelink.json -C:\Users\jdonasch\Projetos\ChatBot\obj\Debug\net9.0\chatbot.dll -C:\Users\jdonasch\Projetos\ChatBot\obj\Debug\net9.0\refint\chatbot.dll -C:\Users\jdonasch\Projetos\ChatBot\obj\Debug\net9.0\chatbot.pdb -C:\Users\jdonasch\Projetos\ChatBot\obj\Debug\net9.0\chatbot.genruntimeconfig.cache -C:\Users\jdonasch\Projetos\ChatBot\obj\Debug\net9.0\ref\chatbot.dll diff --git a/obj/Debug/net9.0/chatbot.dll b/obj/Debug/net9.0/chatbot.dll deleted file mode 100644 index f94fe60..0000000 Binary files a/obj/Debug/net9.0/chatbot.dll and /dev/null differ diff --git a/obj/Debug/net9.0/chatbot.genruntimeconfig.cache b/obj/Debug/net9.0/chatbot.genruntimeconfig.cache deleted file mode 100644 index 3e28003..0000000 --- a/obj/Debug/net9.0/chatbot.genruntimeconfig.cache +++ /dev/null @@ -1 +0,0 @@ -3afa54f03284d1b95c641f79d2797b161dd20beaf4d8928bfc6c64af1fda893f diff --git a/obj/Debug/net9.0/chatbot.pdb b/obj/Debug/net9.0/chatbot.pdb deleted file mode 100644 index 0078cdb..0000000 Binary files a/obj/Debug/net9.0/chatbot.pdb and /dev/null differ diff --git a/obj/Debug/net9.0/chatbot.sourcelink.json b/obj/Debug/net9.0/chatbot.sourcelink.json deleted file mode 100644 index b0cd15a..0000000 --- a/obj/Debug/net9.0/chatbot.sourcelink.json +++ /dev/null @@ -1 +0,0 @@ -{"documents":{"C:\\Users\\jdonasch\\Projetos\\ChatBot\\*":"https://raw.githubusercontent.com/christiandonf/ChatBot/587920de022411f180517105321f9eb3ab97604f/*"}} \ No newline at end of file diff --git a/obj/Debug/net9.0/ref/chatbot.dll b/obj/Debug/net9.0/ref/chatbot.dll deleted file mode 100644 index 8951775..0000000 Binary files a/obj/Debug/net9.0/ref/chatbot.dll and /dev/null differ diff --git a/obj/Debug/net9.0/refint/chatbot.dll b/obj/Debug/net9.0/refint/chatbot.dll deleted file mode 100644 index 8951775..0000000 Binary files a/obj/Debug/net9.0/refint/chatbot.dll and /dev/null differ diff --git a/obj/chatbot.csproj.nuget.dgspec.json b/obj/chatbot.csproj.nuget.dgspec.json deleted file mode 100644 index 9675483..0000000 --- a/obj/chatbot.csproj.nuget.dgspec.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "format": 1, - "restore": { - "C:\\Users\\jdonasch\\Projetos\\ChatBot\\chatbot.csproj": {} - }, - "projects": { - "C:\\Users\\jdonasch\\Projetos\\ChatBot\\chatbot.csproj": { - "version": "1.0.0", - "restore": { - "projectUniqueName": "C:\\Users\\jdonasch\\Projetos\\ChatBot\\chatbot.csproj", - "projectName": "chatbot", - "projectPath": "C:\\Users\\jdonasch\\Projetos\\ChatBot\\chatbot.csproj", - "packagesPath": "C:\\Users\\jdonasch\\.nuget\\packages\\", - "outputPath": "C:\\Users\\jdonasch\\Projetos\\ChatBot\\obj\\", - "projectStyle": "PackageReference", - "configFilePaths": [ - "C:\\Users\\jdonasch\\AppData\\Roaming\\NuGet\\NuGet.Config" - ], - "originalTargetFrameworks": [ - "net9.0" - ], - "sources": { - "https://api.nuget.org/v3/index.json": {} - }, - "frameworks": { - "net9.0": { - "targetAlias": "net9.0", - "projectReferences": {} - } - }, - "warningProperties": { - "warnAsError": [ - "NU1605" - ] - }, - "restoreAuditProperties": { - "enableAudit": "true", - "auditLevel": "low", - "auditMode": "direct" - }, - "SdkAnalysisLevel": "9.0.200" - }, - "frameworks": { - "net9.0": { - "targetAlias": "net9.0", - "imports": [ - "net461", - "net462", - "net47", - "net471", - "net472", - "net48", - "net481" - ], - "assetTargetFallback": true, - "warn": true, - "frameworkReferences": { - "Microsoft.NETCore.App": { - "privateAssets": "all" - } - }, - "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.200/PortableRuntimeIdentifierGraph.json" - } - } - } - } -} \ No newline at end of file diff --git a/obj/chatbot.csproj.nuget.g.props b/obj/chatbot.csproj.nuget.g.props deleted file mode 100644 index 72d008c..0000000 --- a/obj/chatbot.csproj.nuget.g.props +++ /dev/null @@ -1,15 +0,0 @@ - - - - True - NuGet - $(MSBuildThisFileDirectory)project.assets.json - $(UserProfile)\.nuget\packages\ - C:\Users\jdonasch\.nuget\packages\ - PackageReference - 6.13.0 - - - - - \ No newline at end of file diff --git a/obj/chatbot.csproj.nuget.g.targets b/obj/chatbot.csproj.nuget.g.targets deleted file mode 100644 index 3dc06ef..0000000 --- a/obj/chatbot.csproj.nuget.g.targets +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/obj/project.assets.json b/obj/project.assets.json deleted file mode 100644 index 059c083..0000000 --- a/obj/project.assets.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "version": 3, - "targets": { - "net9.0": {} - }, - "libraries": {}, - "projectFileDependencyGroups": { - "net9.0": [] - }, - "packageFolders": { - "C:\\Users\\jdonasch\\.nuget\\packages\\": {} - }, - "project": { - "version": "1.0.0", - "restore": { - "projectUniqueName": "C:\\Users\\jdonasch\\Projetos\\ChatBot\\chatbot.csproj", - "projectName": "chatbot", - "projectPath": "C:\\Users\\jdonasch\\Projetos\\ChatBot\\chatbot.csproj", - "packagesPath": "C:\\Users\\jdonasch\\.nuget\\packages\\", - "outputPath": "C:\\Users\\jdonasch\\Projetos\\ChatBot\\obj\\", - "projectStyle": "PackageReference", - "configFilePaths": [ - "C:\\Users\\jdonasch\\AppData\\Roaming\\NuGet\\NuGet.Config" - ], - "originalTargetFrameworks": [ - "net9.0" - ], - "sources": { - "https://api.nuget.org/v3/index.json": {} - }, - "frameworks": { - "net9.0": { - "targetAlias": "net9.0", - "projectReferences": {} - } - }, - "warningProperties": { - "warnAsError": [ - "NU1605" - ] - }, - "restoreAuditProperties": { - "enableAudit": "true", - "auditLevel": "low", - "auditMode": "direct" - }, - "SdkAnalysisLevel": "9.0.200" - }, - "frameworks": { - "net9.0": { - "targetAlias": "net9.0", - "imports": [ - "net461", - "net462", - "net47", - "net471", - "net472", - "net48", - "net481" - ], - "assetTargetFallback": true, - "warn": true, - "frameworkReferences": { - "Microsoft.NETCore.App": { - "privateAssets": "all" - } - }, - "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\9.0.200/PortableRuntimeIdentifierGraph.json" - } - } - } -} \ No newline at end of file diff --git a/obj/project.nuget.cache b/obj/project.nuget.cache deleted file mode 100644 index edc3412..0000000 --- a/obj/project.nuget.cache +++ /dev/null @@ -1,8 +0,0 @@ -{ - "version": 2, - "dgSpecHash": "OPPTuu0p1CI=", - "success": true, - "projectFilePath": "C:\\Users\\jdonasch\\Projetos\\ChatBot\\chatbot.csproj", - "expectedPackageFiles": [], - "logs": [] -} \ No newline at end of file