poshbotio / PoshBot

Powershell-based bot framework
MIT License
537 stars 108 forks source link

PoshBot crashes when updating plugin when run as a scheduled task or service. #142

Closed mgeorgebrown89 closed 4 years ago

mgeorgebrown89 commented 5 years ago

When running PoshBot as a scheduled task or a service, the Update-Plugin command causes poshbot to crash. I am able to work around this by using remove-plugin and then install-plugin, and this is only a minor inconvenience.

Expected Behavior

!Update-Plugin should update a plugin.

Current Behavior

PoshBot responds with the gear icon, then switches to the red exclamation mark. It no longer responds to any commands. This behavior isn't present when running the poshbot instance as a job.

Possible Solution

n/a

Steps to Reproduce (for bugs)

  1. Start a poshbot instance as a scheduled task or as a service.
  2. Install plugin in Slack.
  3. Edit plugin in powershell.
  4. !Update-Plugin

Context

It's not really a big deal, but it is strange. I may be that it's unique to how I've set it up, but I don't believe I've done anything unusual.

Your Environment

devblackops commented 5 years ago

Thanks for the issue @mgeorgebrown89. I'll try and reproduce on my end.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.