Wrench is the name of the Mach engine mascot, who also helps us automate and maintain Mach project development from time to time.
Join the #wrench
channel in the Mach discord to get an idea of what wrench can do.
Issues are tracked in the main Mach repository.
Wrench is written in Go (convenient due to its ecosystem for this kind of task); install the latest version of Go and go test ./...
or go install .
to install wrench
into your $GOBIN
.
- Navigate to the Discord Applications page
- Select one of your bot applications (you may need to create one for testing.)
- Under Settings, click Bot. If needed create the bot.
- Under the Build-A-Bot section, select Click to Reveal Token
In your config.toml
enter the token:
DiscordBotToken = "SECRET"
To add the bot to a server:
- Under OAuth2, select URL Generator
- Select scopes:
- Bot
- Select permissions:
- Send messages
- Create public threads
- Create private threads
- Send messages in threads
- Send TTS messages
- Embed links
- Attach files
- Read message history
- Add reactions
- Use slash commands
This will give you a URL you can visit to add the bot to your server.
- Install Git
sudo apt-get install git
- ensure v2.39+ - Download release binary
- Move to
/usr/local/bin/wrench
andchmod +x /usr/local/bin/wrench
- Run
sudo wrench setup
and follow instructions
- Ensure Git v2.39+ is installed (use
brew install git
) - Download release binary
- Move to
$HOME/.bin/wrench
andchmod +x $HOME/.bin/wrench
- Place
$HOME/.bin
on PATH if desired - Run
sudo wrench setup
- Install Git:
winget install --id Git.Git -e --source winget
- ensure v2.39+ - Download release binary, rename to
.exe
- Place at
C:/wrench.exe
or some other location. Put on PATH if desired. - In admin terminal run
wrench.exe setup