MJomaa / webdev-support-bot

[Bot] Discord bot for MDN, github, composer, npm, bundlephobia and caniuse as well as a few additional commands

Home Page:https://discordapp.com/oauth2/authorize?client_id=649967864425611274&scope=bot&permissions=26688

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Webdev Support Bot

dependencies devdependencies

Bot providing multiple commands to query common sites used during development or helping people on Discord.

Supports

!github via GitHub API,

!composer via packagist API,

!npm via unofficial npmjs.com API,

!mdn via parsing Mozilla Developer Network and

!caniuse via unofficial caniuse API and mdn-browser-combat-data.

!bundlephobia via unofficial bundlephobia API

Usage / TLDR

# tag it in discord to receive general help
@bot --help
# provides an example each
!mdn --help
!caniuse --help
!composer --help
!npm --help
!github --help
!bundlephobia --help
# queries MDN with <term>
!mdn <term>
# queries caniuse with <term>
!caniuse <term>
# queries packagist with <package>
!composer <package>
# queries npm with <package>
!npm <package>
# queries github with <term>
!github <term>
# queries bundlephobia with <term>
!bundlephobia <term>
  • single-result queries will directly show the result
  • reacting with a number will filter the result
  • reacting with the red or black x will remove the request

Description

By default, shows the first ten results of any given query, unless only one result was found.

Reacting with a number corresponding to the list entry will filter the list and edit the original message, providing more specific information.

Add to your server by...

...accessing this link.

Demo

Development

git clone https://github.com/ljosberinn/webdev-support-bot/

cd webdev-support-bot

cp .env.example .env # and enter a token

yarn install # or npm install
code .

yarn dev # or npm dev

# or be fancy with a one-liner
git clone https://github.com/ljosberinn/webdev-support-bot/ && cd webdev-support-bot && cp .env.example .env && yarn install && code . && yarn dev

Found a bug/want to contribute?

Please head over to GitHub.

About

[Bot] Discord bot for MDN, github, composer, npm, bundlephobia and caniuse as well as a few additional commands

https://discordapp.com/oauth2/authorize?client_id=649967864425611274&scope=bot&permissions=26688

License:MIT License


Languages

Language:TypeScript 100.0%