Skip to content

lckrugel/discord-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A implementation of a discord bot in Go

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages