Setting up WizBot From Source
This is the recommended way of installing WizBot from source. If you don't want to use the installer, skip to Installing WizBot Manually.
- Windows 8 or later
- Redis
- Windows 64 bit: Download and install the latest msi. Don't forget to add it to the path environment variable during the installation process.
- Windows 32 bit: Skip this step
Optional If you want WizBot to play music, do the following:
- Install Visual C++ 2010 (x86) and Visual C++ 2017 (both are required - restart Windows after installation)
- youtube-dl - Click on
Windows.exe
(on the top left corner) and download the file. Then move it toC:\youtube-dl
. If the folderyoutube-dl
doesn't exist, create one.
- Right click the file and extract it.
- Right click the
WizBotInstaller.bat
file and open it as Administrator - After the admin check, you should see main menu with the options below:
1. Download Latest Build
2. Run WizBot (normally)
3. Run WizBot with Auto Restart (check "if" WizBot is working properly, before using this)
4. Setup credentials.json
5. Install ffmpeg (for music)
6. Redis Installation (Opens Website) (64bit)
7. Run Redis (if its not running) (64bit)
8. Install Youtube-dl. (Opens Website)
9. Add Youtube-dl to PATH.
10. Add Redis to PATH. (Advanced Users Only) ("Run Redis" is enough for Normal Users.) (64bit)
11. Install .NET Core SDK (Opens Website)
12. Install Git. (Opens Website)
13. Copy libsodium and opus dll files for 32bit users. (Required for 32bit, Music)
14. Download and run redis-server for 32bit users. (32bit)
15. To exit
- Run Option
1
to download WizBot (type 1 and press Enter). Once it's done, it should take you back to the main menu. - If your Windows is 32-bit, run Option
14
now. Otherwise, ignore this step.
- WizBot should be ready to launch. Run Option
2
to test it out. If everything goes well, WizBot should appear as online on your Discord server and respond to commands. Once you're done with testing, type.die
to shut it down and return to the installer's main menu.
If you don't want the music features, you can launch WizBot with Option
3
and have fun with your newly created bot. Otherwise, follow the steps below.- If you haven't downloaded
youtube-dl.exe
and moved it toC:\youtube-dl
yet, then do it now.- If your Windows is 32-bit, run Option
13
. Otherwise, ignore this step.
- Run Option
5
to downloadffmpeg
. - Run Option
9
to addyoutube-dl.exe
to your system's path environment variable. - That's it. You're done. Launch WizBot with Option
3
and have fun sharing music with your friends.
- Just open the CLI installer and run Option
2
or3
. Easy as that.
This is the "hard" way of installing WizBot. If you're here, we are assuming you know what the hell you're doing.
- Windows 7 or later
- Redis
- Windows 64 bit: Download and install the latest msi. Don't forget to add it to the path environment variable during the installation process.
Optional
If you want WizBot to play music, do the following:
- Install Visual C++ 2010 (x86) and Visual C++ 2017 (both are required - restart Windows after installation)
- youtube-dl - Click on
Windows.exe
(on the top left corner) and download the file. Store it somewhere accessible. - ffmpeg-32bit / ffmpeg-64bit - Download the version for your architecture. Extract it, then find and copy the
ffmpeg.exe
file to somewhere accessible.
- Open command prompt (
cmd.exe
) and run the following command to download the source: git clone -b 1.9 https://gitlab.com/Wizkiller96/WizBot
- On Windows Explorer, go to
WizBot/src/WizBot
and edit thecredentials.json
file according to this guide. - Add these 2 arguments to your credentials file:"ShardRunCommand": "dotnet","ShardRunArguments": "run -c Release --no-build -- {0} {1}",
- Move
youtube-dl.exe
andffmpeg.exe
intowizBot/src/wizBot
(or add them to your PATH environment variable, if you know how) - For 32-bit Windows, replace
libsodium.dll
andopus.dll
inwizBot/src/wizBot
with the ones you've downloaded.
- For 32-bit Windows, run the
redis-server.exe
you have downloaded. You must have this window open while using WizBot. - On command prompt, move to the correct directory:
cd WizBot/src/WizBot
- Build and run WizBot:
dotnet run -c Release
- If everything goes well, WizBot should start up and show as online in your Discord server.
If you have not made custom edits to the source code.
- If you're using the CLI installer, shut your bot down and run Option
1
. That's it. - If you've installed manually, open command prompt (
cmd.exe
) - Move to WizBot's root folder:
cd WizBot
- Update WizBot:
git pull
If you have made custom edits to the source code.
- Open command prompt (
cmd.exe
) - Move to WizBot's root folder:
cd WizBot
- Stash your changes:
git stash save "give me a nice name dd-mm-yyyy"
or justgit stash
- Update WizBot:
git pull
- Apply your stash:
git stash apply
orgit stash apply [email protected]{n}
(wheren
is the ID of the stash)
Other useful commands:
git status
to check the changes you've madegit stash list
to see the list of saved stashes and their corresponding IDgit stash drop [email protected]{n}
to delete a specific stashgit stash pop [email protected]{n}
to apply and delete a specific stash
Last modified 1yr ago