1.1 KiB
1.1 KiB
TentacleBot - Discord .NET Bot
A Discord bot project built with Discord.Net and .NET 8+, featuring dependency injection and slash commands.
Setup Instructions
- Verify .NET SDK is installed (version 8.0 or higher)
- Install project dependencies:
dotnet restore - Configure bot token in
appsettings.json - Build the project:
dotnet build - 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:
{
"Discord": {
"BotToken": "YOUR_BOT_TOKEN_HERE"
}
}
Running the Bot
dotnet run
The bot will connect to Discord and respond to slash commands.