46 lines
1.1 KiB
Markdown
46 lines
1.1 KiB
Markdown
# TentacleBot - Discord .NET Bot
|
|
|
|
A Discord bot project built with Discord.Net and .NET 8+, featuring dependency injection and slash commands.
|
|
|
|
## Setup Instructions
|
|
|
|
1. Verify .NET SDK is installed (version 8.0 or higher)
|
|
2. Install project dependencies: `dotnet restore`
|
|
3. Configure bot token in `appsettings.json`
|
|
4. Build the project: `dotnet build`
|
|
5. Run the bot: `dotnet run`
|
|
|
|
## Project Structure
|
|
|
|
- **Program.cs**: Bot initialization and dependency injection setup
|
|
- **Services/BotService.cs**: Core bot service managing connection and event handlers
|
|
- **Commands/GeneralCommands.cs**: Example slash command module
|
|
- **appsettings.json**: Configuration file for bot token and prefix
|
|
|
|
## Key Features
|
|
|
|
- Dependency injection for services
|
|
- Slash command support
|
|
- Event handling for bot lifecycle
|
|
- Discord.Net integration
|
|
|
|
## Configuration
|
|
|
|
Before running, update `appsettings.json` with your Discord bot token:
|
|
|
|
```json
|
|
{
|
|
"Discord": {
|
|
"BotToken": "YOUR_BOT_TOKEN_HERE"
|
|
}
|
|
}
|
|
```
|
|
|
|
## Running the Bot
|
|
|
|
```bash
|
|
dotnet run
|
|
```
|
|
|
|
The bot will connect to Discord and respond to slash commands.
|