How to Deploy FlawBOT
- Download the latest FlawBOT source code.
- Open
FlawBOT\src\FlawBOT.sln
in Visual Studio. - Modify the included config.json file with your API tokens.
- Build the project.
dotnet clean -c Release
dotnet restore
dotnet build -c Release -f net7.0
dotnet publish -c Release -f net7.0
- Update your Raspberry Pi to the latest version.
sudo apt-get update -y
sudo apt-get upgrade -y
- Copy the compiled FlawBOT files to the Raspberry Pi.
- 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
- Navigate to where you've copied your FlawBOT files and start the bot.
dotnet FlawBOT.dll