JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q30322F
  • License ISC

GitCord allows you to send the github feeds at your discord server without having any issue.

Package Exports

  • gitcord

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gitcord) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

GitCord


Discord

GitCord allows you to send the github feeds to your discord server without having any issue.

Features

  • Allows you to easily get the event details
  • Fast and Highly Configurable
  • Easy to Implement

Example

const Github = require("gitcord")
const github = new Github("CTK-WARRIOR", {
repositories: ["Discord-Bot-For-Starters", "canvas-senpai"]
})
github.setup()

github.on('newEvent', (json) => {
//do something
})

Without Manual Repositories Addition

Basically you have to add the array of repositories name in options or subscribe repository in order to get feeds related to that repository but we have implemented very usefull feauture for you to get rid of these long chain process.

const Github = require("gitcord")
const github = new Github("CTK-WARRIOR", { token: "Your Super Cool Github Token", gitall: true }) //will throw error if user have more than 50 repo
github.setup()

github.on('newEvent', (json) => {
//do something
})

🐱‍🏍 How to use on Discord ?

const Github = require("gitcord")
const Discord = require("discord.js")
const client = new Discord.Client();
const github = new Github("CTK-WARRIOR", { token: "Your Super Cool Github Token", gitall: true })
github.setup()

client.on("ready", () => {
  console.log("Connected to the discord, now ready for fight :D")
})

github.on("newEvent", (embed) => {
  client.channels.cache.get("CHANNEL ID").send({embed})
})

client.login("YOUR DISCORD TOKEN")