plugin-contrib icon indicating copy to clipboard operation
plugin-contrib copied to clipboard

New Plugin: Make Rooms' Announcement

Open huan opened this issue 5 years ago • 0 comments

Plugin Name

RoomAnnouncer (?)

Plugin Options

type IdListFunction = (wechaty: Wechaty) => string | string[]
type IdOption = string | string[] | IdListFunction

interface Options {
  admin: {
    room: IdOption,
    at: boolean,
    command?: string,
    doubleCofirm: boolean,
    whitelist: {
      contact?: IdOption,
    },
    blacklist: {
      contact?: IdOption,
    }
  },
  room: string | string[] | RoomListFunction
}

Description

If there's a new message in the admin room, and it matches the options as a room announcement request, then the bot will set this message as the announcement in the room rooms.

huan avatar May 08 '20 10:05 huan