İçeriğe geç
BETA Voxnup şu an beta aşamasında. Hatalar ve eksiklikler olabilir — geri bildiriminiz bizim için çok değerli! Geri bildirim gönder
Voxnup

Run a bot 24/7 on a server, and automatic updates

Official Voxnup documentation Updated: Türkçe
In short

To keep a bot running on a server, start the app with --headless: ./Voxnup.BotManager --headless --bot mybot on Linux, Voxnup.BotManager.exe --headless --bot mybot on Windows (several bots: --bot a,b). Bot Manager runs on Windows and Linux x64. It finds new versions by itself; every version is signed by Voxnup and an unsigned file is never installed. In --headless mode updates are installed at 04:00 at night and the bots restart automatically.

./Voxnup.BotManager --headless --bot mybot,secondbot      # Linux
Voxnup.BotManager.exe --headless --bot mybot,secondbot   # Windows

Console commands

CommandWhat it does
bot listLists bots
bot new <name>Creates a new bot from the template
bot start <name|all>Starts the bot in the background (same as bot activate)
bot stop <name|all>Stops the bot
bot reload <name>Reloads the bot without stopping it (storage is kept)
bot watch <name>Reloads automatically whenever the file is saved
bot status [name]Status, connection, error count
bot commands <name>The bot's chat commands
bot logs <name> [lines]Last log lines (under logs/<name>/, including WebSocket traffic)
update [check|status]Checks for updates; update installs a new version right away
help, version, cclear, exitHelp, version, clear the console, exit

Automatic updates

When running in the console, the app installs updates on exit; in --headless mode it installs them at 04:00 and restarts the bots (a few seconds of downtime). If a new version fails to start, it rolls back automatically. The setting is in appsettings.json:

"Update": { "Mode": "auto", "ApplyAt": "04:00" }

Mode: auto (installs by itself), notify (only tells you), off. To go back to the previous version by hand, start the app with --rollback.

Warning

On a server, only the user that runs the bot should be able to read bots/<name>.json; it contains the bot token and API key. You can pass them as environment variables instead: VOXNUP_<NAME>_BOT_TOKEN, VOXNUP_<NAME>_API_KEY.

Frequently asked questions

What happens if the bot's connection drops?

Bot Manager reconnects and signs in again by itself if needed; your bot receives onDisconnected and onReconnected events.

Related guides

Still stuck? Email support@voxnup.com. Tell us which device and browser you use and include the exact error text you see, and we'll get back to you quickly.