-
Clone the repository:
git clone https://github.com/yourusername/your-discord-bot.git
-
Install dependencies go get -u
-
Set up your Discord bot on the Discord Developer Portal and obtain your bot token.
-
Create a config.yam; file in the project config dir and add your bot token:
Discord: Token: ""
-
go run cmd/main.go
-
!help: Help command.
-
!poll <question> | <option1> | <option2> | ...: Create a poll.
-
!weather <location>: Get current weather information.
-
!translate <language> <text>: Translate text.
-
!remind <time> <reminder>: Set a reminder.
-
!game rock|scissors|paper: Play Rock-Paper-Scissors.