Add --disable-gateway parameter to the run parameters to stop the bot from connecting to discord. Useful when working on the web-api

This commit is contained in:
Daan Boerlage 2021-09-19 16:06:11 +02:00
parent 447c6d8042
commit 85d06b76e0
Signed by: daan
GPG key ID: FCE070E1E4956606
3 changed files with 18 additions and 10 deletions

View file

@ -20,6 +20,9 @@ namespace Geekbot.Core
[Option('e', "expose-errors", HelpText = "Shows internal errors in the chat (default: false) (env: EXPOSE_ERRORS)")]
public bool ExposeErrors { get; set; } = ParamFallback("EXPOSE_ERRORS", false);
[Option("disable-gateway", HelpText = "Disables the Discord Gateway (default: false) (env: GATEWAY_DISABLE)")]
public bool DisableGateway { get; set; } = ParamFallback("GATEWAY_DISABLE", false);
/************************************
* Database *