/cdnjs2discord

🤖🚀📦 A Discord Bot for accessing the cdnjs platform

Primary LanguageGoMIT LicenseMIT

CDNJS Discord Bot 🤖🚀📦

A bridge between https://cdnjs.com/api and Discord

Big shoutout to Br1ght0ne for helping me with writing helpers.go/SplitIntoPages function on stream (https://twitch.tv/irevenko)

OR NAME: CDNJS Bot #5261

Commands 📃

!cdn help or !cdn - displays help info
!cdn stats - returns cdnjs libraries number
!cdn whitelist - returns cdnjs extension whitelist
!cdn lib - returns specific lib
!cdn search name - returns name search results
!cdn search keywords - returns keywords search results
!cdn search github - returns github search results
!cdn assets - returns assets for the specific lib version

Preview 🔎

Contributing 🤝

Contributions, issues and feature requests are welcome! 👍
Feel free to check open issues.

Quick Start 🚀

git clone https://github.com/irevenko/cdnjs2discord.git
cd cdnjs2discord
go get github.com/bwmarrin/discordgo
go get github.com/joho/godotenv
go run main.go

What I Learned 🧠

  • Building DS bots
  • Using 3rd party client libs (discordgo)

License 📑

(c) 2021 Ilya Revenko. MIT License