Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic Glossary #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Basic Glossary #5

wants to merge 3 commits into from

Conversation

darkdrgn2k
Copy link
Contributor

Hard coded glossary taken from https://github.com/tomeshnet/tomesh.101/blob/master/glossary/glossary.md

Requires fuzzy (npm -i fuzzy)

usage
meshbot what is <term>

example
meshbot what is hop

Hard coded glossary taken from https://github.com/tomeshnet/tomesh.101/blob/master/glossary/glossary.md

Requires fuzzy (npm -i fuzzy)

usage
`meshbot what is <term>`

example
`meshbot what is hop`
items.push
title:"Mesh Point (MP)",content:"An operation mode defined within the 802.11s standard. Mesh Point allows nodes in a network to discover neighbor nodes and keep track of them."
items.push
title:"Auto-Peering",content:"The ability for two peers on a network to automatically link with one another using zero configuration."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How did this extra space get in 🤔

items.push
title:"Link",content:"A logical connection between two nodes (ignoring physical infrastructure in the way) or a physical link between two nodes (using ethernet, fiber, wireless equipment, etc.). Links allow nodes to communicate with one another."
items.push
title:"Supernode",content:"A node on the network that actively routes traffic/data for other nodes."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix alignments!

robot.respond /what is (.*)\??/i, (msg) ->
term = msg.match[1]
term = term.split("\?")[0].trim() if term.length > 0
items = [];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather have a git hub file that gets pulled instead of hard coding like this

https://github.com/github/hubot-scripts/blob/ec0b06aa9f2169c8427cdf77f49a0de698c969b1/src/scripts/word-of-the-day.coffee#L36

And if anyone wants to implement better code for this please do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants