github.com/meowstercatel/discordgo@v0.0.0-20250615204139-29b43d676735/examples/echo/README.md (about) 1 <img align="right" alt="DiscordGo logo" src="/docs/img/discordgo.svg" width="200"> 2 3 ## DiscordGo Echo Example 4 5 This example demonstrates how to utilize DiscordGo to create a simple, 6 slash commands based bot, that will echo your messages. 7 8 **Join [Discord Gophers](https://discord.gg/0f1SbxBZjYoCtNPP) 9 Discord chat channel for support.** 10 11 ### Build 12 13 This assumes you already have a working Go environment setup and that 14 DiscordGo is correctly installed on your system. 15 16 From within the example folder, run the below command to compile the 17 example. 18 19 ```sh 20 go build 21 ``` 22 23 ### Usage 24 25 ``` 26 Usage of echo: 27 -app string 28 Application ID 29 -guild string 30 Guild ID 31 -token string 32 Bot authentication token 33 34 ``` 35 36 Run the command below to start the bot. 37 38 ```sh 39 ./echo -guild YOUR_TESTING_GUILD -app YOUR_TESTING_APP -token YOUR_BOT_TOKEN 40 ```