Skip to content

Instantly share code, notes, and snippets.

View jagrosh's full-sized avatar

John Grosh jagrosh

View GitHub Profile
@jagrosh
jagrosh / IDGrabber.java
Last active June 17, 2022 21:15
get a list of user ids from a server
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.jagrosh.idgrabber;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
@jagrosh
jagrosh / GiveawayBot.java
Last active May 17, 2023 21:13
Simple GiveawayBot using JDA
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package giveawaybot;
import java.io.File;
import java.util.LinkedList;
import java.util.List;
@jagrosh
jagrosh / Github Webhook Tutorial.md
Last active April 17, 2024 01:06
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
@jagrosh
jagrosh / WebhookTutorial.md
Last active December 4, 2023 20:28
Simple Webhook Tutorial (Twitter -> Discord)

Simple Webhook Tutorial

In this tutorial, I will be explaining how to set up a simple webhook to relay your tweets to a Discord channel

Step 1 - Register on Zapier

  1. Go to https://zapier.com/ and create an account (if you don't already have one).

Step 2 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send Tweets