You can pass the token to this puppet by putting it into options, or by setting the environment variable WECHATY_PUPPET_GITTER_TOKEN.
Puppet Gitter
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()
Environment Variable: 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.
Wechaty Puppet Gitter
Wechaty Puppet for Gitter: https://gitter.im
Feature
USAGE
The
wechaty-puppet-gitterneeds a TOKEN and only one token from gitter so that it can connect to the gitter.im service.You can pass the token to this puppet by putting it into
options, or by setting the environment variableWECHATY_PUPPET_GITTER_TOKEN.Puppet Gitter
Environment Variable:
WECHATY_PUPPET_GITTER_TOKENThe
wechaty-puppet-gitterwill search the environment variable namedWECHATY_PUPPET_GITTER_TOKENto get the token if you do not set it in theoptions.Resources
GitHub Projects
HISTORY
master v1.0 Release
Release v1.0
v0.4 (Aug 27, 2020)
v0.2 (Aug 21, 2020)
Initial version.
PuppetGitteris a Gitter Puppet for https://gitter.imAUTHOR
Huan LI <zixia@zixia.net>
COPYRIGHT & LICENSE