2.8 KiB
2.8 KiB
Setting Up EllieBot on Windows from source
Prerequisites
- Windows 10 or later (64-bit)
- .net 8 sdk
- If you want ellie to play music: [Visual C++ 2010 (x86)] and [Visual C++ 2017 (x64)] (both are required, you may install them later)
- git - needed to clone the repository (you can also download the zip manually and extract it, but this guide assumes you're using git)
- Optional Any code editor, for example Visual Studio Code
- You'll need to at least modify creds.yml, notepad is inadequate
??? note "Creating a Discord Bot & Getting Credentials" --8<-- "md/creds-guide.md"
Installation Instructions
Open PowerShell (press windows button on your keyboard and type powershell, it should show up; alternatively, right click the start menu and select Windows PowerShell), and
- Navigate to the location where you want to install the bot
- for example, type
cd ~/Desktop/
and press enter
- for example, type
git clone https://toastielab.dev/EllieBotDevs/elliebot -b v6 --depth 1
cd elliebot/src/EllieBot
dotnet build -c Release
cp data/creds_example.yml data/creds.yml
- "You're done installing, you may now proceed to set up your bot's credentials by following the creds guide
- Once done, come back here and run the last command
- Run the bot
dotnet EllieBot.dll
- 🎉 Enjoy
Update Instructions
Open PowerShell as described above and run the following commands:
- Stop the bot
- ⚠️ Make sure you don't have your database, credentials or any other elliebot folder open in some application, this might prevent some of the steps from executing successfully
- Navigate to your bot's folder, example:
cd ~/Desktop/elliebot
- Pull the new version, and make sure you're on the v6 branch
git pull
- ⚠️ IF this fails, you may want to
git stash
or remove your code changes if you don't know how to resolve merge conflicts
- Backup old output in case your data is overwritten
cp -r -fo output/ output-old
- Build the bot again
dotnet run -c Release src/EllieBot/
- Copy old data, and new strings
cp -r -fo .\output-old\data\ .\output\
- Run the bot
cd output
dotnet EllieBot.dll
- 🎉 Enjoy
Music Prerequisites
In order to use music commands, you need ffmpeg and yt-dlp installed.