Skip to main content

How to Deploy FlawBOT

  1. Download the latest FlawBOT source code.
  2. Open FlawBOT\src\FlawBOT.sln in Visual Studio.
  3. Modify the included config.json file with your API tokens.
  4. Build the project.
dotnet clean -c Release
dotnet restore
dotnet build -c Release -f net7.0
dotnet publish -c Release -f net7.0
  1. Update your Raspberry Pi to the latest version.
sudo apt-get update -y
sudo apt-get upgrade -y
  1. Copy the compiled FlawBOT files to the Raspberry Pi.
  2. Install .NET Core 7.0 runtime.
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel Current
echo 'export DOTNET_ROOT=$HOME/.dotnet' >> ~/.bashrc
echo 'export PATH=$PATH:$HOME/.dotnet' >> ~/.bashrc
source ~/.bashrc
  1. Navigate to where you've copied your FlawBOT files and start the bot.
dotnet FlawBOT.dll