Skip to content

Instantly share code, notes, and snippets.

View AndrielChaoti's full-sized avatar
🙀
You can't tell I'm a cat.

Andriel Chaoti AndrielChaoti

🙀
You can't tell I'm a cat.
View GitHub Profile
@AndrielChaoti
AndrielChaoti / healthCommand.js
Created June 10, 2019 12:42
Roll20 API script to show health levels.
const HEALTH_DESC = [ 'Unconcious', 'Near Death', 'Badly Injured', 'Injured', 'Barely Injured', 'Uninjured', 'Dead' ];
on('chat:message', function(msg) {
// custom api macros
if(msg.type == 'api') {
if (msg.content.indexOf('!hp ') !== -1) {
// get target
var target = msg.content.replace('!hp ', '');
var tokens = findObjs({ type: 'graphic', subtype: 'token', id: target }, true);
if (tokens.length == 0) {
@AndrielChaoti
AndrielChaoti / Watchdog.java
Created December 11, 2017 21:33
A thing that I did...
package com.github.vaerys.main;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Timer;
import java.util.TimerTask;
class Watchdog {
@AndrielChaoti
AndrielChaoti / Mods removed...
Last active July 27, 2017 22:29
Starbound crash with spear
[15:28:13.134] [Info] Root: Preparing Root...
[15:28:13.143] [Info] Root: Done preparing Root.
[15:28:13.143] [Info] Client Version 1.3.2 (windows x86_64) Source ID: 4d70cfed23093a8e5abe06d662c6a5610fefc596 Protocol: 743
[15:28:13.143] [Info] Root: Scanning for asset sources in directory '..\assets\'
[15:28:13.559] [Info] Root: Skipping asset directory '..\mods\', directory not found
[15:28:13.559] [Info] Root: Detected asset source named 'base' at '..\assets\packed.pak'
[15:28:13.559] [Info] Root: Detected unnamed asset source at '..\assets\user'
[15:28:13.559] [Info] Loading assets from: '..\assets\packed.pak'
[15:28:14.103] [Info] Loading assets from: '..\assets\user'
[15:28:14.976] [Info] Assets digest is 563ff626b877e7d080472517395bc6c4eda613eaf6ac1576e95136a4ca9b3d64