Skip to content

Instantly share code, notes, and snippets.

Avatar
💾

John Grosh jagrosh

💾
View GitHub Profile
@jagrosh
jagrosh / Github Webhook Tutorial.md
Last active Sep 24, 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
@jagrosh
jagrosh / Growing A Discord Server.md
Last active Sep 4, 2021
Tips for creating and growing a new Discord server
View Growing A Discord Server.md

This guide is kept up-to-date as Discord and available resources change!
A basic server template is available here

Creating and Growing a Discord Server

logo

Introduction

Hello! I'm jagrosh#4824! I'm writing this guide to try to help new server owners set up and grow their servers, which is a commonly-requested topic. It's very easy to go about this the wrong way, so it's best to be prepared and make smart decisions so that your community can flourish!

Background

@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 / jagrosh_privacy_policy.md
Last active Jun 13, 2021
Privacy Policy and Agreement for jagrosh's Bots
View jagrosh_privacy_policy.md

Privacy Policy

This document entails the privacy policy and agreement that you accept when adding any of jagrosh's bots to a server, or as a member of such a server. This document does not supersede the Developer Terms of Service.

Bots, Services, and Servers

The following is a list of bots to which this privacy policy applies.

  • Spectra#7794 (135251434445733888)
  • 💾#0863 (159133099806949376)
  • Beta#4388 (162311503821799425)
@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 / RoleReactionBot.java
Created Feb 2, 2018
Bot to give (or take away) roles based on clicking certain reactions.
View RoleReactionBot.java
/*
* Copyright 2018 John Grosh (jagrosh).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
View keybase.md

Keybase proof

I hereby claim:

  • I am jagrosh on github.
  • I am jagrosh (https://keybase.io/jagrosh) on keybase.
  • I have a public key whose fingerprint is 32F1 CE14 7C7D 7A47 F928 56BD 4DA1 6B2E EF40 B602

To claim this, I am signing this object:

@jagrosh
jagrosh / SuggestBot.java
Created Nov 8, 2017
Bug/Feature Requests bot
View SuggestBot.java
/*
* Copyright 2017 John Grosh (jagrosh).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@jagrosh
jagrosh / StreamRoleBot.java
Last active Mar 14, 2019
Bot to give a role only when a member is live
View StreamRoleBot.java
/*
* Copyright 2018 John Grosh (jagrosh).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software