Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
hubot-longtext
Advanced tools
Readme
This script relies on a new Hubot v2.17.0 feature known as 'response middleware'. It WILL NOT work on older versions of Hubot.
A Hubot script for handling long messages by returning a link to an online paste containing the message.
This script is useful for automatically capturing long Hubot responses (e.g. help text) that would otherwise flood your chat channel / room. A captured response is then converted into an online paste, and a link to the paste is returned.
HUBOT_LONGTEXT_MAX_LINES
(accounts for \n
, and \r
);HUBOT_LONGTEXT_MAX
;See src/longtext.coffee
for full documentation.
Install the hubot-longtext module as a Hubot dependency by running:
npm install --save hubot-longtext
Enable the module by adding the hubot-longtext entry to your external-scripts.json
file:
[
"hubot-longtext"
]
Run your bot and see below for available config / commands
Variable | Default | Description |
---|---|---|
HUBOT_LONGTEXT_MAX | 300 | Any message sent by Hubot that is longer than HUBOT_LONGTEXT_MAX string characters will be replaced with a link to the paste containing the message |
HUBOT_LONGTEXT_MAX_LINES | false | Any message sent by Hubot with more than HUBOT_LONGTEXT_MAX_LINES string lines will be replaced with a link to the paste containing the message (disabled by default) |
HUBOT_LONGTEXT_SERVICE | Dpaste | (TBA) |
user1>> hubot help
hubot>> http://dpaste.com/0TGWQ8T
FAQs
A Hubot script for handling long messages by returning a link to an online paste containing the message.
The npm package hubot-longtext receives a total of 2 weekly downloads. As such, hubot-longtext popularity was classified as not popular.
We found that hubot-longtext demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.