C
C#5mo ago
Arsenic

Discord bot hosting

I am developing a Discord bot with C# and I have a question about bot hosting how can I host the bot in such a way that whenever I change the codes on my system, the codes are automatically changed in vps and continue?
2 Replies
Pobiega
Pobiega5mo ago
Not trivial, but you could set up a build system that would monitor your source repository and automatically initiate a build when a push to master is made when the build finishes, you can have it then run a deployment job that would update your current running bot (by killing it and running the new one instead)
canton7
canton75mo ago
Or you can have a git repo on your vps, with a hook which does something like copy the files somewhere else and restart your bot on push. See https://gitolite.com/deploy.html (Yes you could build it to an exe on github CI and then transfer the compiled binary to your VPS... Or you could just be lazy and dotnet run from a checkout of the source code, which is what I'd do)