Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gitcord

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitcord

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

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Weekly downloads
 
Created
Source

GitCord


Discord

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

  • 📃 Guide/Docs: Soon
  • 💬 Discord: https://withwin.in/dbd
  • 🎥 Youtube: https://www.youtube.com/channel/UClAFgotVhZ1DGvN57EMY7fA
  • 🙌 Video Tutorial: Not Out
  • 💪 Special Contributor: Legendary Emoji#1742
  • 🛠 Tools Used: Axios

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")

Keywords

FAQs

Package last updated on 03 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc