Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neemiasborges/whatsappbot
plicativo desenvolvido em C# usando Windows Forms, projetado para automatizar interações no WhatsApp. O bot permite enviar e receber mensagens, gerenciar contatos e executar comandos automatizados
https://github.com/neemiasborges/whatsappbot
bot clean-code csharp selenium whatsapp
Last synced: 17 days ago
JSON representation
plicativo desenvolvido em C# usando Windows Forms, projetado para automatizar interações no WhatsApp. O bot permite enviar e receber mensagens, gerenciar contatos e executar comandos automatizados
- Host: GitHub
- URL: https://github.com/neemiasborges/whatsappbot
- Owner: NeemiasBorges
- Created: 2024-04-21T17:57:27.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-05-28T00:33:57.000Z (9 months ago)
- Last Synced: 2024-12-01T16:43:50.479Z (3 months ago)
- Topics: bot, clean-code, csharp, selenium, whatsapp
- Language: C#
- Homepage:
- Size: 40 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WhatsAppBot
This repository contains the code for a WhatsApp Bot built using C#. The project is structured into several components, including Root, DTO, Interfaces, Repository, and the `infra.csproj` file.
## Table of Contents
- [Introduction](#introduction)
- [Project Structure](#project-structure)
- [Setup and Installation](#setup-and-installation)
- [Configuration](#configuration)
- [Running the Project](#running-the-project)
- [Contributing](#contributing)
- [License](#license)## Introduction
WhatsAppBot is a C# project designed to create a bot that interacts with WhatsApp. This bot can handle various messaging tasks and integrates seamlessly with the WhatsApp API.## Project Structure
- **Root**: Contains the main entry point and primary logic for the bot.
- **DTO**: Data Transfer Objects used to encapsulate data.
- **Interfaces**: Interface definitions for various components of the bot.
- **Repository**: Handles data access and storage.
- **infra.csproj**: The project file defining the .NET project configuration.
- **appsettings**: Configuration file for storing application settings, including the connection string.## Setup and Installation
To set up and run this project, follow these steps:1. **Clone the repository**:
```bash
git clone https://github.com/Neemoasb/WhatsAppBot
```2. **Install .NET 7**:
Download and install the .NET 7 SDK from the [official .NET website](https://dotnet.microsoft.com/download/dotnet/7.0).3. **Install project dependencies**:
Navigate to the project directory and restore the dependencies:
```bash
cd WhatsAppBot
dotnet restore
```## Configuration
Before running the project, you need to configure the connection string in the `appsettings.json` file. Update the `ConnectionStrings` section with your database connection details.Example `appsettings.json` snippet:
```json
{
"ConnectionStrings": {
"DefaultConnection": "Your_Connection_String_Here"
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*"
}
```
## Running the Project
After setting up the configuration, you can run the project using the following command:
```bash
dotnet run --project infra.csproj
```## Contributing
If you would like to contribute to this project, please follow these steps:1. Fork the repository.
2. Create a new branch (`git checkout -b feature/your-feature`).
3. Commit your changes (`git commit -am 'Add some feature'`).
4. Push to the branch (`git push origin feature/your-feature`).
5. Open a Pull Request.## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.