question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Windows System Fix

See original GitHub issue

After 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:open
  • Created 4 years ago
  • Reactions:4
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
davson19commented, Jul 11, 2019

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 of sudo npm install canvas made it run. Then cloning gave a couple warnings about permissions, and npm i just doesn’t work (apparently an issue w/ npm intself)

0reactions
Jouveercommented, Jul 12, 2019

Try sudo chown -R $(whoami) node_modules/ Then make sure other installations are correct with npm install -g node-gyp without sudo npm install canvas without sudo

When I run the command I get my user account as owner, not root. Hopefully setting the ownership to you will fix the permission error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use the System File Checker tool to repair missing or ...
Describes how to use the System File Checker tool to troubleshoot missing or corrupted system files in Windows 8.1, Windows 8, Windows 7...
Read more >
How to repair Windows 10 (and 11) in 4 steps - Computerworld
The Windows 10 (or 11) repair drill · Step 1: Using DISM and SFC for system repair · Step 2: Try a recent...
Read more >
How to Repair Corrupt Windows Files With Windows Built-In ...
1. Run the SFC Scan to Repair Corrupt System Files · Enter "cmd" in the Windows search bar. · Right-click on Command Prompt...
Read more >
How to use Windows 10's System File Checker (SFC ...
How to repair Windows 10 from System File Checker · Open Start. · Search for Command Prompt, right-click the top result, and select...
Read more >
Repair Corrupt Windows System Files With SFC & DISM - AVG
The System File Checker (SFC) is a built-in Windows repair tool that scans your computer for corrupted Windows system files and attempts to ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found