Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 973 Bytes

File metadata and controls

24 lines (14 loc) · 973 Bytes

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

  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

  4. Then run, from the root of the project, go mod tidy and go run ./cmd/main.go