Skip to content

Instantly share code, notes, and snippets.

View Hay1tsme's full-sized avatar

Kevin Trocolli Hay1tsme

View GitHub Profile
@Hay1tsme
Hay1tsme / ChallongeDiscord.js
Last active June 27, 2023 08:13
Simple node.js app that uses Discords webhook feature to push match updates about a challonge.com tournament. Requires request, fs and timers are global
'use strict';
//Program by Kevin 'Hay1tsme' Trocolli
//Uses Discord webhooks to push updates about a Challonge tournament to a discord server via text message
const request = require('request');
const fs = require('fs');
const timer = require('timers')
const hook = "<Discord Webhook Here>"
const chal = "https://api.challonge.com/v1/tournaments/<subdomain>-<tournimentURL>/matches.json?api_key=<apiKey>&state=complete"