https://github.com/thutasann/csharp-discord-bot
making a discord bot in c#
https://github.com/thutasann/csharp-discord-bot
csharp discord-bot
Last synced: 4 months ago
JSON representation
making a discord bot in c#
- Host: GitHub
- URL: https://github.com/thutasann/csharp-discord-bot
- Owner: thutasann
- Created: 2024-05-31T13:47:33.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-27T15:10:41.000Z (12 months ago)
- Last Synced: 2025-01-09T02:21:49.270Z (5 months ago)
- Topics: csharp, discord-bot
- Language: C#
- Homepage:
- Size: 74.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MAKING A DISCORD BOT IN C# 🤖
Making the Discord Bot in C# with [DSharpPlus](https://github.com/DSharpPlus/DSharpPlus).
![]()
## Features
- Commands
- Embed Messages
- Mini CardGame Embed Message
- Poll and Reactions Embed Message
- Commands Attributes and Events Handler
- Slash Commands
- Group Slash Commands
- Interaction Components (Buttons, Dropdown, Inputs, Modals)## Setups
- setup bot and generate token from [discord developer portal](https://discord.com/developers/docs/intro)
- create `config.json` at root```json
{
"token": "your-token-here",
"prefix": "your-prefix-here"
}
```- send messages/commands with defined prefix (example `!embed`, `!cardgame`)
- can see the commands in `TestCommands.cs`## Scripts
### Watch Run
```bash
dotnet watch run
```### Build Run
```bash
dotnet run
```