Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Add imgflip meme generation to your Lita bot!
Add lita-imgflip-memes to your Lita instance's Gemfile:
gem "lita-imgflip-memes"
The 'lita way' to do this is to open up your lita_config.rb
and set up file-based configuration:
config.handlers.imgflip_memes.api_user = 'myusername'
config.handlers.imgflip_memes.api_password = 'mypassword'
I have set up this gem to deafult to the following environment variables if the config entries aren't set in lita_config.rb
:
ENV['IMGFLIP_API_USER']
ENV['IMGFLIP_API_PASSWORD']
On a suggestion from @joshwlewis I've added a way to put new memes in your Lita bot without having to monkey patch this gem. Add them to your lita_config.rb
with the add_meme
method:
Lita::Handlers::ImgflipMemes.add_meme(
template_id: 61546,
pattern: /(brace yoursel[^\s]+) (.*)/i,
help: 'brace yourselves, <text>')
Note that the pattern
needs to be a regex and it needs to capture two strings. If you don't have two pairs of parens in your regex you're gonna have a bad time.
Lita > lita aliens chatbots
http://i.imgflip.com/1tzqwt.jpg
FAQs
Unknown package
We found that lita-imgflip-memes 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.