This guide will detail how to install and setup WildBeast on Windows.
- Windows system
- Minimum: Windows 10 Home 64-bit (Additional dependencies required)
- Recommended: Windows 10 Professional or Enterprise 64-bit
- Administrator access
- You will also need a text editor other than Windows Notepad. Notepad++, Visual Studio Code or any of the sort will suffice.
Note about Windows 10 Home
Windows 10 Home lacks native virtualisation support, namely Hyper-V, which is used by Docker. Before you read on, find out your edition of Windows from either the Settings app (Settings\System\About) or the Control Panel (Control Panel\System and Security\System).
You will need to install Docker Community Edition and Kitematic to use WildBeast. Depending on your operating system, the procedure will slightly differ.
- If you are using W10 Professional or Enterprise, follow the instructions to install Docker on Windows and Kitematic.
- If you are using W10 Home, follow the instructions to install Docker Toolbox.
Complete the appropriate installation procedure and verify Docker is functional before proceeding.
It is highly recommended to use Git to retrieve WildBeast instead of downloading a ZIP package from GitHub for ease of updating later down the line.
Download Git and install it with the following options:
- Features: Desktop icon, Explorer integration and TrueType console font can be omitted at will
- Text editor: Your personal preference
- Use Git from the Windows Command Prompt (Important!)
- Use OpenSSH and OpenSSL (Important!)
- Checkout as-is, commit Unix-style line endings
- Use MinTTY (If you're installing Git Bash)
- Additional options: Your personal preference
With that done, clone the WildBeast GitHub repository by running
git clone https://github.com/TheSharks/WildBeast.git in a terminal window. After cloning, change to the
WildBeast directory and open .env.example with your preferred text editor.
Edit the following parameters:
- BOT_TOKEN: Add your Discord bot token here. (Eg. create a bot and add it to a server)
- BOT_PREFIX: Add your preferred command prefix here. (Eg. !, ++, etc.)
- WILDBEAST_MASTERS: Add a pipe-delimited list of user IDs you wish to set as super users here. (Eg. 152664793587777537|10790402390177792 and so on)
If you're running a custom ArangoDB instance and wish to use it, you can also edit ARANGO_USERNAME, ARANGO_PASSWORD, ARANGO_DATABASE and ARANGO_URI now. The same goes for the LAVA_NODES variable in case you're running a custom Lavalink instance.
When done, save the file as .env. Then run
docker-compose up --no-start in the WildBeast directory. When the container creation is done, open Kitematic and you should have the following containers present.
It is paramount you save the file as .env. Do not leave it as .env.example, name it .env.txt or anything similar. Docker will not recognise it in this case.
Known docker-compose issues
Docker Toolbox does not start automatically with Windows out of the box - it needs to be started explicitly. Thus, if you do not perform this step, you may run into cryptic errors when attempting to compose. These errors are known to arise:
Could not connect to Docker daemon
Windows named pipe error: The system cannot find the file specified
Docker Toolbox should create a desktop icon called Docker Quickstart Terminal upon installation. Start it, wait for it to completely start (Until it shows Start interactive shell), restart your terminal and run the compose command again.
To initialise WildBeast, start the following containers in the following order. Wait for one to finish before proceeding.
If you configured a custom ArangoDB instance previously, omit the first step.
You may have to click back and forth between containers to see the output from one.
When wildbeast_install_1 finishes, you may stop it. After this you do not need to run wildbeast_install_1 again, as this only initialises the database. You can run it again if you wish to repair your database, however.
Open the settings for the wildbeast_wildbeast_1 container and check the Environment Variables tab. The minimum defaults were defined previously, but the bot will only have fairly limited functionality if left at this state.
Here is a list of environment variables we recommend you define or at least consider defining. Check the footnotes for brief instructions on how to get the API keys below.
|Variable||Description||Commands using this||Type|
|IMGUR_KEY||Imgur API key.2||randommeme||String|
|TWITCH_ID||Twitch client ID.3||twitch||String|
|WILDBEAST_VOICE_PERSIST||Prevent the bot from automatically leaving a voice channel after a playlist has ended.||Music||Number (0/1)4|
|WILDBEAT_DISABLE_MUSIC||Prevent all music functionality from being used.||Music||Number (0/1)4|
|WILDBEAST_LANGUAGE||Set the language of the bot. Currently only English is available.||All||String|
There are more environment variables that can be defined as well. You can find the full reference in .env.example.
However, we do not recommend editing variables in the Internal configuration section lest you know what you're doing. These variables exist for development and/or internal purposes and can have unintended side effects if messed with.
Running the bot¶
If you're running custom non-Docker instances for ArangoDB and Lavalink, and have configured WildBeast to use them, omit starting the first two containers.
Your WildBeast instance should now be good to go. Start both the wildbeast_arango_1 and wildbeast_lavalink_1 containers, and when they're ready, start wildbeast_wildbeast_1. Wait for it to start, and if your output roughly resembles the following, you're set.
You can test the bot by running the ping command (With your prefix) in a text channel that the bot can see. If it answers "Pong!", then your bot is set up.
If you have further questions or need help with something, we'd be happy to help. You can find a link to the official server below.
Enjoy your bot and have fun!