Skip to content

git clone https://github.com/wechaty/wechaty-getting-started.git cd wechaty-getting-started #318

@992968581-afk

Description

@992968581-afk

import { WechatyBuilder } from 'wechaty'

const bot = WechatyBuilder.build()

bot.on('message', async msg => {
const text = msg.text()

if (text === '你好') {
await msg.say('你好呀 👋')
}
})

bot.start()

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