This is a basic template for creating Discord bots in Go.
- Clone this repository:
git clone https://github.com/Luiso9/mari-go
- Get your Discord bot token from:
https://discord.com/developers/applications
- Create a file named config.json and add:
{
"token": "your_bot_token_here",
"prefix": "!" // Change the prefix if you want
}
- Install the discordgo library:
go get -u https://github.com/bwmarrin/discordgo
- Run the bot :
go run main.go
Create new files in the commands directory and register them in commands/commands.go. Example 'ping' command is included.
This project is licensed under the MIT License.