Gitter.im Puppet for Wechaty
Gitter is an open-source instant messaging and chat room system for developers and users of GitLab and GitHub repositories.
‐ WikiPedia
Wechaty Puppet for Gitter: https://gitter.im
The wechaty-puppet-gitter
needs a TOKEN and only one token from gitter so that it can connect to the gitter.im service.
Learn more about the TOKEN from gitter.im at https://developer.gitter.im/apps
You can pass the token to this puppet by putting it into options
, or by setting the environment variable WECHATY_PUPPET_GITTER_TOKEN
.
import { Wechaty } from 'wechaty'
import { PuppetGitter } from 'wechaty-puppet-gitter'
/**
* Personal Access Token: this token can be used to access the Gitter API.
* https://developer.gitter.im/apps
*/
const puppet = new PuppetGitter({ token: 'your_gitter_token' })
const wechaty = new Wechaty({ puppet })
await wechaty.start()
WECHATY_PUPPET_GITTER_TOKEN
The wechaty-puppet-gitter
will search the environment variable named WECHATY_PUPPET_GITTER_TOKEN
to get the token if you do not set it in the options
.
Release v1.0
Initial version.
PuppetGitter
is a Gitter Puppet for https://gitter.im