OSX Guide
MacOS From Source¶
Open Terminal (if you don't know how to, click on the magnifying glass on the top right corner of your screen and type Terminal on the window that pops up) and navigate to the location where you want to install the bot (for example cd ~
)
Installing Homebrew, wget and dotnet¶
Homebrew/wget¶
Skip this step if you already have homebrew installed
- Copy and paste this command, then press Enter:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Install wget
- brew install wget
Dotnet¶
- Download .net6 SDK
- Open the
.pkg
file you've downloaded and install it. - Run this command in Terminal. There might be output. If there is, disregard it. (copy-paste the entire block)
- Run this command in Terminal. There won't be any output. (copy-paste the entire block):
Installation Instructions¶
- Download and run the new installer script
cd ~ && wget -N https://github.com/Wizkiller96/wizbot-bash-installer/raw/v4/linuxAIO.sh && bash linuxAIO.sh
- Install prerequisites (type
1
and press enter) - Download the bot (type
2
and press enter) - Exit the installer in order to set up your
creds.yml
- Copy the creds.yml template
cp wizbot/output/creds_example.yml wizbot/output/creds.yml
- Open
wizbot/output/creds.yml
with your favorite text editor. We will use nano herenano wizbot/output/creds.yml
- Enter your bot's token
- After you're done, you can close nano (and save the file) by inputting, in order
CTRL
+X
Y
Enter
- Run the bot (type
3
and press enter)
Update Instructions¶
- ⚠ Stop the bot
- Update and run the new installer script
cd ~ && wget -N https://github.com/Wizkiller96/wizbot-bash-installer/raw/v4/linuxAIO.sh && bash linuxAIO.sh
- Update the bot (type
2
and press enter) - Run the bot (type
3
and press enter) - 🎉
MacOS Manual Release installation instructions¶
⚠ IF YOU ARE FOLLOWING THE GUIDE ABOVE, IGNORE THIS SECTION ⚠
Installation Instructions¶
- Download the latest release from https://gitlab.com/WizNet/WizBot/-/releases
- Look for the file called "X.XX.X-osx-x64-build.tar" (where X.XX.X is a series of numbers) and download it
- Untar it
⚠ Make sure that you change X.XX.X to the same series of numbers as in step 1!
tar xf X.XX.X-osx-x64-build.tar
- Rename the
wizbot-osx-x64
towizbot
mv wizbot-osx-x64 wizbot
- Move into wizbot directory and make WizBot executable
cd wizbot && chmod +x WizBot
- Copy the creds.yml template
cp creds_example.yml creds.yml
- Open
creds.yml
with your favorite text editor. We will use nano herenano wizbot/output/creds.yml
- Enter your bot's token
- After you're done, you can close nano (and save the file) by inputting, in order
CTRL
+X
Y
Enter
- Run the bot
./WizBot
Update Instructions¶
- Stop the bot
- Download the latest release from https://gitlab.com/WizNet/WizBot/-/releases
- Look for the file called "X.XX.X-osx-x64-build.tar" (where X.XX.X is a series of numbers) and download it
- Untar it
⚠ Make sure that you change X.XX.X to the same series of numbers as in step 2!
tar xf 2.99.8-osx-x64-build.tar
- Rename the old wizbot directory to wizbot-old (remove your old backup first if you have one, or back it up under a different name)
rm -rf wizbot-old 2>/dev/null
mv wizbot wizbot-old
- Rename the new wizbot directory to wizbot
mv wizbot-osx-x64 wizbot
- Remove old strings and aliases to avoid overwriting the updated versions of those files
⚠ If you've modified said files, back them up insteadrm wizbot-old/data/aliases.yml
rm -r wizbot-old/data/strings
- Copy old data
cp -RT wizbot-old/data/ wizbot/data/
- Copy creds.yml
cp wizbot-old/creds.yml wizbot/
- Move into wizbot directory and make the WizBot executable
cd wizbot && chmod +x WizBot
- Run the bot
./WizBot
🎉 Enjoy
Steps 3 - 9 as a single command¶
Don't forget to change X.XX.X to match step 2.
tar xf X.XX.X-osx-x64-build.tar && \
rm -rf wizbot-old 2>/dev/null && \
mv wizbot wizbot-old && \
mv wizbot-osx-x64 wizbot && \
rm wizbot-old/data/aliases.yml && \
rm -r wizbot-old/data/strings && \
cp -RT wizbot-old/data/ wizbot/data/ && \
cp wizbot-old/creds.yml wizbot/ && \
cd wizbot && chmod +x WizBot