This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Discord all events! | |
// A quick and dirty fleshing out of the discord.js event listeners (not tested at all!) | |
// listed here -> https://discord.js.org/#/docs/main/stable/class/Client | |
// Learn from this, do not just copy it mofo! | |
// | |
// Saved to -> https://gist.github.com/koad/316b265a91d933fd1b62dddfcc3ff584 | |
/* | |
koad-was-here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Register Helper example for five fields. This is a test Register Helper example. | |
* Please add the below code to your custom plugin or Code Snippets Plugin by following this guide - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ | |
function my_pmprorh_init() { | |
//don't break if Register Helper is not loaded | |
if(!function_exists( "pmprorh_add_registration_field" )) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Node / Iquidus Explorer Setup for Dummies | |
Pulse Crypto is used in this example. | |
This Tutorial is going to create a Daemon (node) and install Explorer. | |
THIS IS NOT GOING TO CREATE A GUI CLIENT. | |
Follow the instructions in [whatever coin name] docs folder Unix build - some builds are different. | |
I setup this up on both Ubuntu 15.10 and 16.04 with no issues. | |
You can create an account on vultr and get $50 free to be used in 2 months. |