Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Plugin: Make Rooms' Announcement #4

Open
huan opened this issue May 8, 2020 · 0 comments
Open

New Plugin: Make Rooms' Announcement #4

huan opened this issue May 8, 2020 · 0 comments

Comments

@huan
Copy link
Member

huan commented May 8, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant