This is the .NET Core Telegram bot for playing a SpyFall with friends inside of chats. Bot language can be English or Ukrainian.
You can play with stable version of my project with these two bots: @ShpigonGameEngBot (English) and @ShpigonGameBot (Ukrainian)
- Install .NET Core SDK on your machine. You can find instruction for this on Microsoft website.
- Choose or create directory on your machine where you will store this project and then
cdto it. - Make a local clone of this repository on your machine with
git clone https://github.com/longl1ve/telegramShpigonGameBot - Now
cdto your local repository. - Publish a .NET app with
dotnet publish -c Release -o /path/to/your/local/repository --runtime linux-x64 - Create a Systemd File for .NET app with
nano /etc/systemd/system/bot.service(bot will be deployed as a service). - Copy config from bot.service to the
bot.servicefile on your machine and edit things such as bot API token and path. Save the changes and close the file. - Now reload daemon with
sudo systemctl daemon-reload - Start bot service with
sudo systemctl start bot.service - Enable bot service with
sudo systemctl enable bot.service - Now you can check the status of your bot with
sudo systemctl status bot.service - It should be all set up and running! Now your service will start on system boot every time.