https://github.com/lckrugel/discord-bot
A implementation of a discord bot in Go
https://github.com/lckrugel/discord-bot
bot discord discord-bot go websocket
Last synced: about 13 hours ago
JSON representation
A implementation of a discord bot in Go
- Host: GitHub
- URL: https://github.com/lckrugel/discord-bot
- Owner: lckrugel
- Created: 2024-09-02T23:30:23.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-03T10:59:12.000Z (about 1 year ago)
- Last Synced: 2025-09-02T23:08:39.703Z (10 months ago)
- Topics: bot, discord, discord-bot, go, websocket
- Language: Go
- Homepage:
- Size: 46.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Discord Bot
This is an implementation of a Discord bot using Go that I'm doing as a learning exercise and a hobby.
## Current capabilities
- Perform the handshake and connect to Discord Event Gateway
- Maintain connection sending heartbeats
- For now it is unable to reconnect if something fails
## Requirements
- Go: `v1.23`
- Discord account
## Configuration and Running
1. First step is to create a bot account and get a token to be able to authenticate the bot. Follow the [discord.py tutorial](https://discordpy.readthedocs.io/en/stable/discord.html)
2. Setup the `.env` file by using `cp .env.example .env` and inserting your discord token
3. Setup the bot intents in `config/bot_intents_config.json`. Watch out as some of these require extra privileges. Refer to the documentation: [Gateway Intents](https://discord.com/developers/docs/events/gateway#gateway-intents)
4. Then run, from the root of the project, `go mod tidy` and `go run ./cmd/main.go`