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
/* | |
Emoticon plugin | |
This plugin allows you to use emoticons in both chat rooms (as long as they are enabled in the room) and private messages. | |
Adding this plugin to your server is fairly simple. | |
1) Add this file to your chat-plugins folder. | |
2) Open the rooms.js file in your favourite text editor and replace this.add('|c|' + user.getIdentity(this.id) + '|' + message); with: | |
var emoticons = parseEmoticons(user.getIdentity(this.roomid), message); | |
if (emoticons && !room.disableEmoticons) { | |
this.addRaw(emoticons); |
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
/************************************** | |
* Anagram plugin for Pokémon Showdown * | |
* By: jd * | |
**************************************/ | |
'use strict'; | |
const fs = require('fs'); | |
const http = require('http'); |
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
/******************************** | |
* EZ-TC Plugin by jd * | |
* Makes adding trainer cards EZ * | |
********************************/ | |
var fs = require('fs'); | |
var serialize = require('node-serialize'); | |
var trainerCards = {}; | |
function loadTrainerCards () { |
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
var sqlite3 = require('sqlite3'); | |
var db = new sqlite3.Database('config/users.db', function() { | |
db.run("CREATE TABLE if not exists users (userid TEXT, name TEXT, bucks INTEGER)"); | |
}); | |
var fs = require('fs'); | |
var http = require('http'); | |
var MD5 = require('MD5'); | |
var shopTitle = 'Shop'; | |
var serverIp = '127.0.0.1'; |