To remove a member from a room, you can use the following eval code to achieve that:
eval
const ROOM_TOPIC_RE=/Home 6/i;
const MEMBER_NAME_RE=/纸超人/i;
const room = await this.wechaty.Room.find({ topic: ROOM_TOPIC_RE });
const memberList = await room.memberAll();
const bob = memberList.filter(m => MEMBER_NAME_RE.test(m.name()))[0];
await room.say("You have violated the code of conduct of our Wechaty Developers's Room, we need to move you out of this room.", bob);
await this.wechaty.sleep(5000);
await room.say('done');
await room.del(bob);
await this.log('done');
3 Cash
Cash is a cross-platform implementation of Unix shell commands written in straight ES6. No native compiling and no external dependencies.
wechaty-vorpal-contrib
Wechaty Vorpal Chat CLI (Command Line Interface)
Requirements
Usage
You are welcome to send your Vorpal Extension to our contrib by creating a Pull Request!
dongScreenshot
UrlLink
Eval
Commands
The Wechaty Vorpal Contrib includes the most useful commands from the Wechaty Contributors.
If you believe we should add more command to the contrib, please feel free to submit an proposal by creating an new issue, with your code in the PR!
1 Ding
2 Eval
Eval Example
To remove a member from a room, you can use the following
evalcode to achieve that:3 Cash
Cash is a cross-platform implementation of Unix shell commands written in straight ES6. No native compiling and no external dependencies.
This extension is powered by Cash.
Learn more supported command at https://github.com/dthree/cash#supported-commands
4 MathMaster
Play game in WeChat and make you a master of math! (leader board support)
5 Whoru
Let the bot tell you about its version & server information.
6 Version
Let the bot tell you its dependencies/devDependencies.
Contributors
History
main v1.0 (Oct 23, 2021)
Release v1.0 of Wechaty Vorpal Contrib.
v0.6 (July 10, 2020)
MathMasterExtension for play game in WeChat!WhoruandVersionextensions.v0.2 (June 19, 2020)
Init the first version of Wechaty Vorpal Extensions for official Wechaty ChatOps Commands
DingExtension for trigger adongreplyEvalExtension for EVAL JavaScript code from the chat window!CashExtension for Cross-platform Linux commands in pure ES6Author
Huan LI (李卓桓), Tencent TVP of Chatbot, <zixia@zixia.net>
Copyright & License