Skip to content

New Plugin: Make Rooms' Announcement #4

Description

@huan

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions