Socket
Socket
Sign inDemoInstall

gitord

Package Overview
Dependencies
134
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gitord

Gitord is a free and open-source 'bot template' that alerts you in the Discord Chanel of your choice if your github repository does not respect the rules you apply to it.


Version published
Weekly downloads
3
decreased by-25%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Gitord npm version

Description

Gitord is a free and open-source "bot template" that alerts you in the Discord Chanel of your choice if your github repository does not respect the rules you apply to it.

Installation

Check Gitord's wiki

npm i gitord

Usage

import { Gitord } from "./Gitord";
var bot = new Gitord(
  "Discord token",
  "Github token",
  "test-kanban-bot",
  "repo_test",
  "Discord chanel ID"
);
bot.welcome_message = false;
bot.RefreshTime = 5;
bot.Rules.IssueMinimalBody = 1;
bot.Rules.PullNeedToFix = false;
bot.Start();
  • 'Discord_token'
  • 'Github_token' by leaving "anon" as a parameter of Github_token you can use Gitord anonymously, only for public directories and with an API rate limit
  • 'Github_Repo_owner'
  • 'Github_Repo_name'

example: "QuentinGruber" is the repo_owner of this repo and "Gitord" is the repo_name*

  • 'Chanel_id'

To get the ID of a channel you have to switch your Discord to developer mode.

  1. Go to the "appearance" settings of your account
  2. Enable developer mode
  3. Right-click on the channel of your choice and copy its identifier
  • 'User_list'

    example : "User_list":[["Github_Username1","DiscordID1"],["Github_Username2","DiscordID2"]]

    To get a DiscordID right-click on the user of your choice and copy its identifier

More info about the available rules here.

Used Node.js version 12.18.0

Keywords

FAQs

Last updated on 02 Aug 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc