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 / Monster Hunter World Discord
Created November 3, 2017 00:56
Monster Hunter World Discord
Monster Hunter World Discord: https://discordapp.com/invite/monsterhunter
MHWorld Discord: https://discord.gg/monsterhunter
MonsterHunterWorld Discord: https://discord.gg/invite/monsterhunter
Monster Hunter World on Discord: https://discordapp.com/invite/monsterhunter
@jagrosh
jagrosh / SuggestBot.java
Created November 8, 2017 21:54
Bug/Feature Requests bot
/*
* 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
var bot = new cleverbot("", ""); // Set up keys
var bot2 = new cleverbot("", ""); // Set up keys
var firstword = "Hello.";
bot.setNick("Bill"); // Set a nickname
bot2.setNick("Fred")
bot.create(function (err, session) { // Initialize Cleverbot
bot2.create(function(err, session) {
document.write(bot.nick+": "+firstword);
@jagrosh
jagrosh / StatusEnum.java
Created February 7, 2018 23:13
Discord Status API snippet, part of the bot that runs https://discord.gg/jn7TAP8
/*
* Copyright 2018 John Grosh <john.a.grosh@gmail.com>.
*
* 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 June 17, 2022 21:15
Bot to give a role only when a member is live
/*
* 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
@jagrosh
jagrosh / StatusRoleBot.java
Last active June 17, 2022 21:15
Discord Bot to sync statuses to roles
/*
* Copyright 2018 John Grosh (john.a.grosh@gmail.com).
*
* 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

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 / RoleReactionBot.java
Created February 2, 2018 19:47
Bot to give (or take away) roles based on clicking certain reactions.
/*
* 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
@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;