Simply use VBS to call the enterprise wechat robot to send timing messages

Time:2021-9-26

Last year inEnterprise wechatSuddenly, a thing called multi group robot was seen in the group:

Simply use VBS to call the enterprise wechat robot to send timing messages

Enterprise wechat group robot

I think it’s a black technology upgraded. After reading the description, it turns out that the current function is a webhook interface for receiving custom messages, which can push custom messages to the group where the robot is located by calling the interface. Although it looks very simple, it’s still very useful to think about it, so give it a simple try and give it a regular reminder first.

Adding robots to the group is very simple. Click the plus sign, and then click the add robot button to create a group robot. You can give the robot a name and upload ithead portrait, add a brief introduction. The system will automatically generate a webhook calling address. The calling method is described in detail in the configuration description.

Simply use VBS to call the enterprise wechat robot to send timing messages

Add robot

Simply use VBS to call the enterprise wechat robot to send timing messages

Customize robot name and Avatar

There are many methods to call the interface to send data. In order to be simple and easy, I choose to use itVBSCreate a script, then add a planning task to the windows server, and execute the script at a fixed time to realize a simple automatic reminder function in the group.

Simply use VBS to call the enterprise wechat robot to send timing messages

Vbs script

The script is very simple, but it is enough to realize an enterprise wechat group robot with regular reminder. Put the script on a server and create a scheduled task.

The script should note that the format of params string should be written correctly. In addition, the script file itself should use ANSI coding. I use nopad + +. At first, the default is UTF-8, but the Chinese submitted to the interface in the script is garbled when it is received and pushed to the group. Later, it should be changed to ANSI.

With such an interface, many functions can be realized. The ability of the robot depends entirely on the ability of the background to push messages. If the background is an AI, the robot may really look like a robot. I don’t know if the robot of enterprise wechat will have interaction ability. If it has interaction ability, it will be more fun.

This is the end of this article about the method of simply using VBS to call the enterprise wechat robot to send timing messages. For more information about VBS calling the enterprise wechat robot to send timing messages, please search the previous articles of developeppaper or continue to browse the relevant articles below. I hope you can support developeppaper in the future!

Recommended Today

Seven Python code review tools recommended

althoughPythonLanguage is one of the most flexible development languages at present, but developers often abuse its flexibility and even violate relevant standards. So PythoncodeThe following common quality problems often occur: Some unused modules have been imported Function is missing arguments in various calls The appropriate format indentation is missing Missing appropriate spaces before and after […]