Skip to content

Instantly share code, notes, and snippets.

Avatar
💾

John Grosh jagrosh

💾
View GitHub Profile
@jagrosh
jagrosh / IDGrabber.java
Last active Jul 30, 2021
get a list of user ids from a server
View IDGrabber.java
/*
* 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 Mar 9, 2021
Simple GiveawayBot using JDA
View GiveawayBot.java
/*
* 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 Sep 17, 2021
Simple Github -> Discord webhook
View Github Webhook Tutorial.md

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 Sep 4, 2021
Simple Webhook Tutorial (Twitter -> Discord)
View WebhookTutorial.md

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