SwitchbladeBot / switchblade

The open source Discord bot that solves all of your problems.
https://switchblade.xyz/
BSD 4-Clause "Original" or "Old" License
428 stars 218 forks source link

nodejs documentation command #1228

Open almeidx opened 4 years ago

almeidx commented 4 years ago

https://github.com/Snowflake107/nodejs-docs https://api.github.com/repos/nodejs/node/contents/doc/api?ref=v12.x

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label type: idea to this issue, with a confidence of 0.77. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

rubiin commented 4 years ago

more info on this

almeidx commented 4 years ago

more info on this

Simply a command that grabs info on a specific topic from https://nodejs.org/en/docs. Example: s!nodejs buffer alloc and it would send info from https://nodejs.org/dist/latest-v12.x/docs/api/buffer.html#buffer_class_method_buffer_alloc_size_fill_encoding or whatever else version (the version could be specified using a flag)

theGeekyLad commented 4 years ago

The example command sends the link right? Also, does it fetch the anchored link (upto alloc function) specifically?

almeidx commented 4 years ago

Just make a command similar to this, but using NodeJS documentation instead of mdn.