Skip to content

Instantly share code, notes, and snippets.

@SReject
SReject / IRE Example.md
Last active June 23, 2023 01:34
JSON-Based Invoke, Response, Event overview

Example Communications

Client sends a 'authorize' invocation to server:

{
    "type": "invoke",
    "id":   "authMe",
    "name": "authorize",
    "data": ["guest"]
@SReject
SReject / factoryidleexposer.user.js
Created December 12, 2017 21:33
Exposes factoryidle.com's main game instance
// ==UserScript==
// @name Factoryidle Game Instance Exposer
// @namespace SReject/FactoryIdle/Exposer
// @version 0.0.1
// @description Exposes factoryidle.com's Game instance
// @author SReject
// @match http*://factoryidle.com/
// @match http*://www.factoryidle.com/
// @run-at document-start
// ==/UserScript==
Events with 0 parameters
APPACTIVE
AGENT
CONNECT
CONNECTFAIL
DISCONNECT
DNS
EXIT
LOAD
MIDIEND
@SReject
SReject / bearnbot-config.md
Last active November 1, 2016 20:05
Explains the bearnbot/config.json format

Configuration

These configuration files are provided for ease-of-life testing or local instances. It is highly recommended that for publicly accessible instances the configuration is set via environment variables and these files are removed.

Usage

To indicate the bot should retrieve its configuration from file use the

Authorizing

Sending
{"type":"method","method":"auth","arguments":["userid", "channelid", "authkey"], "id": "..."}

Reply
todo

@SReject
SReject / AspectListExamples.js
Created January 9, 2016 13:18
AspectList.js Example Usage
var aspects = new AspectList({
"aer": false,
"aqua": false,
"ignis": false,
"perditio": false,
"ordo": false,
"terra": false,
"gelum": ["ignis", "perditio"],
"lux": ["aer", "ignis"],
"motus": ["aer", "ordo"],
@SReject
SReject / AspectList.js
Created January 9, 2016 13:09
Aspect List
/*
small library for handling Thaumcraft 4.2.2 aspects
Constructor:
@base - (object) - Required
Containing a key-value pair of aspects and their make-up components or false for primals
@compile - (boolean) - optional; default to true
If true the working aspect list will be compiled from the base