Skip to content

Instantly share code, notes, and snippets.

View meew0's full-sized avatar

meew0 meew0

View GitHub Profile
@meew0
meew0 / pingpong.js
Created February 23, 2016 16:42
The ping pong example from discord.js, fixed up slightly
/*
this bot is a ping pong bot, and every time a message
beginning with "ping" is sent, it will reply with
"pong!".
*/
// Load discord.js
var Discord = require("discord.js");
// Create a client
@meew0
meew0 / djs-voice-example.js
Created November 28, 2015 12:50
@hydrabolt's discord.js voice example which was used for testing during development. I slightly changed some things and added lots of comments. The original is since gone from the repo but it can still be found in the history: http://git.io/vBi9P
var Discord = require("discord.js");
// Make a client to add events to
var client = new Discord.Client();
var request = require("superagent");
// Debug and warning handlers, these log debug messages and warnings to console
client.on("debug", (m) => console.log("[debug]", m));
client.on("warn", (m) => console.log("[warn]", m));
@meew0
meew0 / gist:5c3c6fc371d7cce03b46
Created November 16, 2015 19:29
Bot that links you to a youtube video when you first join a server
var Discord = require('discord.js');
var client = new Discord.Client();
// Handle discord.js warnings
client.on('warn', (m) => console.log('[warn]', m));
client.on('serverNewMember', (server, user) => {
var defChannel = server.defaultChannel;
defChannel.sendMessage(`${user.mention()}, https://www.youtube.com/watch?v=Za2PJnCAkUA`);
});
@meew0
meew0 / Main.java
Created November 14, 2014 22:12
Whittaker Words Lookup
package meew0.words;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;
public class Main {
public static void main(String[] args) {
if (args.length < 1) {
@meew0
meew0 / NEMCheck.rb
Last active August 29, 2015 14:05
NEM Update Checker
# NotEnoughMods Update Checker
# Made by meew0
#
# Requires Ruby
# http://ruby-lang.org/
#
# Download as NEMCheck.rb, go into a command prompt,
# navigate to the folder you downloaded it to and run
# ruby NEMCheck.rb
# Easy, right?
@meew0
meew0 / chime.obj
Created July 18, 2014 16:19
Wind Chime for Fenn
# Wind Chime Model for Fenn
# Made by meew0
v -1.000000 -0.690173 1.000000
v -1.000000 -0.690173 -1.000000
v 1.000000 -0.690173 -1.000000
v 1.000000 -0.690173 1.000000
v -1.000000 -0.565173 1.000000
v -1.000000 -0.565173 -1.000000
v 1.000000 -0.565173 -1.000000
@meew0
meew0 / ee3-gems.obj
Created July 15, 2014 13:10
Armor Gem Editor for Equivalent Exchange 3
# Armor Gem Editor Block Model
# For Pahimar for EE3
# Made by meew0
# The armor could be put onto the grid, the magnifying-glass-arm could be used to look at the armor
# The compartment with the tools could also store gems
# Maybe the magnifying thing could also focus laser beams coming from the face on the top part
# Really, do whatever the hell you want with this
# It's not the most awesome model in the world, but it's decent I guess
@meew0
meew0 / Lamp OBJ
Last active August 29, 2015 13:58
A simple ceiling lamp.
v 0.050000 0.500000 0.950000
v 0.050000 0.500000 0.050000
v 0.950000 0.500000 0.050000
v 0.950000 0.500000 0.950000
v 0.283214 0.628968 0.716787
v 0.283214 0.628968 0.283214
v 0.716787 0.628968 0.283214
v 0.716787 0.628968 0.716787
v 0.479089 0.636569 0.520911
v 0.479089 0.636569 0.479089