github.com/meowstercatel/discordgo@v0.0.0-20250615204139-29b43d676735/examples/auto_moderation/README.md (about) 1 <img align="right" alt="DiscordGo logo" src="/docs/img/discordgo.svg" width="200"> 2 3 ## DiscordGo Auto Moderation Example 4 5 This example demonstrates how to utilize DiscordGo to manage auto moderation 6 rules and triggers. 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 auto_moderation 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 auto_moderation: 27 -channel string 28 ID of the testing channel 29 -guild string 30 ID of the testing guild 31 -token string 32 Bot authorization token 33 ``` 34 35 The below example shows how to start the bot from the auto_moderation example folder. 36 37 ```sh 38 ./auto_moderation -channel YOUR_TESTING_CHANNEL -guild YOUR_TESTING_GUILD -token YOUR_BOT_TOKEN 39 ```