Skip to content

lackingworth/Go-Discord-Message-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go-Discord-Message-Bot

Simple Discord message bot

Behaviour

Bot reacts to certain text messages by giving a reply

Installing

  • You must have Go v1.21 (or higher) installed on your system
  • To enable this bot for your discord server you must have a bot template at Discord Applications
  • The bot template must have text and channel/message viewing permissions
  • The bot must be authorized and be on your server

Executing program

  • Clone this repository to the location of your choosing
  • Enter your Bot Token into config.json file
  • Open your terminal
  • Navigate to the saved location using cd folderName command, where folderName is the name of your path folder
  • When in right location run:
go mod download
go build
go run main.go

Customization

You can add your own message queries by adding rules to the messageHandler() function in bot.go file

For Example:

if m.Content == "Desired message query" {
   _, _ = s.ChannelMesageSend(m.ChannelID, "Desired answer")
}

Help

For more types of handlers or general information about Discord Bot behaviours, please refer to:

Feel free to report any issues or suggest improvements

Version History

  • v.0.0.1:

    • Initial Release

About

Go Message Bot for Discord

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages