Windows System Fix
See original GitHub issueAfter trying to get the bot to work with windows, I seem to have found a solution where everything I have tested is working.
Bot setup instructions Windows 10:
1. Install Ubuntu
Execute this command and restart PC.
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
1b. Download Ubuntu from Microsoft Store and install
Run the following commands through Ubuntu
2. Update
sudo apt-get update
sudo apt-get upgrade
3. Install NodeJS
sudo apt-get install curl python-software-properties
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install nodejs
4.Install GCC through build-tools
sudo apt install build-essential
5.Install Node-gyp
sudo npm install -g node-gyp
6.Create a discord bot https://discordapp.com/developers/applications/
7.Create osu! API Key https://osu.ppy.sh/p/api/
8.Install .NET SDK
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo add-apt-repository universe
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-2.2
If you are unable to locate the package:
sudo dpkg --purge packages-microsoft-prod && sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install dotnet-sdk-2.2
9.Install Node Canvas
sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
npm install canvas
10.Clone Repository and build
cd
git clone https://github.com/LeaPhant/flowabot.git
If you want PP command:
cd
git clone --recurse-submodules https://github.com/ppy/osu-tools
cd osu-tools/
sudo ./build.sh
11.Set Up Bot
cd
cd flowabot
npm i
npm run config
Set up the bot how you would like, using your discord bot info and osu! API Key.
Performance calculator dll should be located at:
/home/**YOUR USER**/osu-tools/PerformanceCalculator/bin/Release/netcoreapp2.0/PerformanceCalculator.dll
12.Set Up Emojis
Let bot join your server:
https://discordapp.com/api/oauth2/authorize?client_id=**YOUR-CLIENT-ID**&permissions=8&scope=bot
Still within flowabot directory:
npm run emojis
The server index should be 0 if the bot is only on 1 server.
13.Start Bot
npm start
If anything is not working then I will try to help, the guide is just written from memory so I may have forgotten something.
File system is located at:
C:\Users\**USER**\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:10 (1 by maintainers)
Tried this and it went well until I tried to install canvas, got hit with some permission errors but adding
--unsafe-perm=true
at the end ofsudo npm install canvas
made it run. Then cloning gave a couple warnings about permissions, andnpm i
just doesn’t work (apparently an issue w/ npm intself)Try
sudo chown -R $(whoami) node_modules/
Then make sure other installations are correct withnpm install -g node-gyp
without sudonpm install canvas
without sudoWhen I run the command I get my user account as owner, not root. Hopefully setting the ownership to you will fix the permission error.