
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@cs-chatbots/webchat-cli
Advanced tools
CLI tool for webchat. Can be used for the management of valve, application and channels.
$ sudo npm i -g webchat-cli
Sets controlled webchat api url
$ webchat init
A login is needed for the valve related write operations and all
channel/application operations. The command asks for a username and a password
and after a successful authorization stores an access token received from the
API locally (OAuth2). The default validity of the token is one hour. There is
a different user for valve (my_username
) and for channels/applications
(crud
).
$ webchat login
The CLI stores the history of write operations. This history may be displayed using:
$ webchat history
The commands are stored in the history in a normlized form (e. g. even if we use an interactive version of the command the command stored in the history is the non-interactive one with the same effect).
$ webchat valve-ls
$ webchat valve-set businessHours 0.2
$ webchat valve-set valve.overrideCurrent " -1"
$ webchat valve-delete valve.businessHours
Here are just some examples, see webchat help
for full reference:
$ webchat channel-add CHANNEL_NAME
Adds a channel. The CLI will ask for the primary application id, whitelisted origins and applications linked to the channel.
$ webchat channel-add -a !ge_bot_error CHANNEL
Adds the channel CHANNEL and links all applications but ge_bot_error
to this
channel.
$ webchat channel-mod -w +http://localhost:3000 CHANNEL
Adds the whitelisted origin http://localhost:3000
to the channel CHANNEL.
$ webchat channel-mod -r ge_bot_error-onb CHANNEL
Adds new errorbot application to the channel CHANNEL.
$ webchat channel-rm CHANNEL
$ webchat app-add -w http://localhost:8030/APP -c CHANNEL_1,CHANNEL_2 APP
Creates the application APP with the webhook http://localhost:8030/APP
and
links it to the channels CHANNEL_1 and CHANNEL_2.
Here are just some examples, see webchat help
for full reference:
$ webchat app-mod -c _CHANNEL_1,CHANNEL_2 APP
Removes the application APP from the channels CHANNEL_1 and CHANNEL_2.
$ webchat app-rm APP
Deletes the application APP.
$ git clone
$ cd webchat-cli
$ npm install
$ node ./bin/webchat.js
FAQs
CLI for Webchat
The npm package @cs-chatbots/webchat-cli receives a total of 62 weekly downloads. As such, @cs-chatbots/webchat-cli popularity was classified as not popular.
We found that @cs-chatbots/webchat-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.