Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
hubot-hangman
Advanced tools
A hubot script for playing hangman using the WORDNIK api, api-key required.
Play Hangman using Wordnik and Hubot!
A coffee-script based chat add-on for playing Hangman. The script originated in the hubot-scripts repo. The hubot-scripts repo was later deprecated in favor of using stand alone node_modules for each hubot add-on. Seeing as the hangman.coffee script had not been touched or modified in several years and the originator of the script did not have a repo with anything related to hangman, I opted to port this and keep it maintained with the MIT license.
Please feel free to leave any feedback on the github project.
The script requires a Wordnik API key which you will need to request and setup as a CONFIG_VAR on Heroku. The API keys are free to request. http://developer.wordnik.com/
hubot hangman
- Display state of current game or start new game.hubot hangman {x}
- Make a single character guess.hubot hangman {word}
- Make a guess to solve the puzzle.Run the following command
$ npm install hubot-hangman
Then to make sure the dependencies are installed:
$ npm install
To enable the script, add a hubot-hangman
entry to the external-scripts.json
file (you may need to create this file).
["hubot-hangman"]
'
as a default guess. Now spaces, dashes, and apostrophes will not require guessing and will be shown in the word printout.This-is a-game
would now be shown as ? ? ? ? - ? ? ? - ? ? ? ?
.The 8 letter word is: ? ? ? ? - ? ? ?
-
as a default guess. Many users don't expect a dash to appear in the word and hence never guess special characters.-
it will be treated as a previously guessed letter and will not count against you.-
to ?
. Some words in the WORDNIK api include dashes, this can confuse the game leaving you stuck in an eternal loop. Changing the character to a question mark to prevent this from happening in the future. *
's and _
's have been avoided due to markdown formatting used by many chat client apps._
to -
to improve client formattingFAQs
A hubot script for playing hangman using the WORDNIK api, api-key required.
We found that hubot-hangman 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.