Skip to content

Instantly share code, notes, and snippets.

View vincenavarro's full-sized avatar
:octocat:
Burning Branches

Vince Navarro vincenavarro

:octocat:
Burning Branches
View GitHub Profile
@vincenavarro
vincenavarro / index.js
Created May 21, 2019 15:01
Simple, complete example of a bot in Discord.js
// Load up the discord.js library
const Discord = require("discord.js");
// This is your client. Some people call it `bot`, some people call it `self`,
// some might call it `cootchie`. Either way, when you see `client.something`, or `bot.something`,
// this is what we're refering to. Your client.
const client = new Discord.Client();
// Here we load the config.json file that contains our token and our prefix values.
const config = require("./config.json");
@vincenavarro
vincenavarro / git-author-rewrite.sh
Last active February 3, 2019 19:47 — forked from octocat/git-author-rewrite.sh
Mutli-email replacement for git commits.
#!/bin/sh
git filter-branch -f --env-filter $'
OLD_EMAILS="
[email protected]
[email protected]
"
CORRECT_NAME="New Name"
CORRECT_EMAIL="[email protected]"
for EMAIL in ${OLD_EMAILS}; do