Wednesday, April 5, 2017

PowerShell bot for Stack Exchange chat

Some chat rooms on the Stack Exchange network have bots that post predefined messages in response to certain triggers. (A surprisingly high proportion of these resources are links to adorable cat pictures.) As a fun challenge for myself, I tried to write one such bot in PowerShell, and successfully made something functional though minimal. It's on GitHub.

I made sure to not use any parts that require Internet Explorer components, so the script works fine on non-Windows OSes. The few HTML parsings that need to be done are handled by regex.

No comments:

Post a Comment