Build precise queries to find exactly what you need
Press ESC to close
Join our next live webinar: “Advanced Nagios Monitoring Techniques” – Register Now
@cmot-weasel
Favorites0
Views
Projects0
Mostly works out the box, cheers. I found a couple of bugs which might help someone else: Firstly line 13 threw an error about the SnapIn already being added - fix was to comment it out: 13: #asnp VeeamPSSnapin Secondly, the date comparison really didn't work, so I changed it from: 56: if ($now -gt $last) to 56: if(Get-Date $now) -gt (Get-Date $last)) Which seemed to do the job quite nicely. :-) If that inadvertently cocks up something else, then whoops - this is the first and hopefully only time I've had to deal with powershell. Give me bash any day... Thanks
Reviewed 12 years ago
I had to change from twisted.protocols import irc to from twisted.words.protocols import irc in order to get it to run, but it does what it says on the tin, and works really well as a base to built a more complex bot from if you've not done this sort of thing before.