/mari-go

A Discord bot written in GoLang

Primary LanguageGoMIT LicenseMIT

Simple Discord Bot Template

This is a basic template for creating Discord bots in Go.

Setup

  1. Clone this repository:
git clone https://github.com/Luiso9/mari-go
  1. Get your Discord bot token from:
https://discord.com/developers/applications
  1. Create a file named config.json and add:
{
"token": "your_bot_token_here",
"prefix": "!"  // Change the prefix if you want
}
  1. Install the discordgo library:
go get -u https://github.com/bwmarrin/discordgo
  1. Run the bot :
go run main.go

Adding Commands

Create new files in the commands directory and register them in commands/commands.go. Example 'ping' command is included.

License

This project is licensed under the MIT License.