Skip to content

Instantly share code, notes, and snippets.

Working on GameGlass

Skhmt Skhmt

Working on GameGlass
  • Las Vegas
View GitHub Profile
Skhmt / MakePNG.kt
Last active Jun 8, 2019
png mixed content
View MakePNG.kt
import io.javalin.Javalin
main requires:
test at:
Skhmt / VJoy.kt
Last active Jan 10, 2018
JVM vJoy feeder in Kotlin and JNA
View VJoy.kt
import com.sun.jna.*
import com.sun.jna.ptr.*
import com.sun.jna.platform.win32.*
class VJoy(path: String) {
private val vj = Native.loadLibrary(path,
fun axisEnum(axis: String): Int {
val lowerAxis = axis.toLowerCase()
Skhmt / win10.bat
Last active Feb 12, 2018
windows 10 tweaks
View win10.bat
:: *** Disable Some Service ***
sc stop DiagTrack
sc stop diagnosticshub.standardcollector.service
sc stop dmwappushservice
sc stop WMPNetworkSvc
sc stop WSearch
sc config DiagTrack start= disabled
sc config diagnosticshub.standardcollector.service start= disabled
sc config dmwappushservice start= disabled
Skhmt / importAnkhPoints.js
Created Feb 24, 2016
Import Ankhbot currency database into Koalabot. Requires Koalabot 0.9.2 or later.
View importAnkhPoints.js
There is basically no error checking in this module whatsoever.
If you upload a .sqlite that isn't CurrencyDB.sqlite, I have no idea what will happen.
Only for use with Koalabot 0.9.2 or later.
var importAnkhPoints = (function() {
var _db;
var _myTab = apiAddTab( 'importAnkhPoints' );
Skhmt / obs-integration.js
Last active Feb 19, 2016
CLR/BrowserSource integration for OBS with KoalaBot. Use with index.html.
View obs-integration.js
How this works:
The recentevents queue stores the most recent events, be they FOLLOW,
SUB, HOST, JOIN, or anything type of event that you manually add, perhaps
when a user types in a command or the streamer presses a button.
This module creates a webserver via Express.js to listen on port 3001
by default, see the _port variable. This will create a website whose
main responsibility will be to go to localhost:3001/events and regularly
get the most recent events. In the default example, it gets the 25 most
recent events every 1.5 seconds. That page will handle everything else,
Skhmt / index.html
Last active Feb 11, 2016
index.html to be put in /mods/obspublic/ for use with obs-integration.js
View index.html
<script src=""></script>
<style type="text/css">
html, body {padding:0; margin:0}
@-webkit-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@-webkit-keyframes fadeOut { from { opacity:1; } to { opacity:0; } }
.fade-in {
opacity: 0; /* make things invisible upon start */
-webkit-animation: fadeIn ease-in 1; /* call our keyframe named fadeIn, use animattion ease-in and repeat it only 1 time */
Skhmt / developer.js
Last active Feb 11, 2016
You probably want this module if you're developing other modules in KoalaBot.
View developer.js
* Developer options
// Run the setup for your mod.
var modDev = (function() {
var _win = require( "nw.gui" ).Window.get();
// Creates an entry in the Modules tab and creates a page based on the name you give it
Skhmt / lastvidInterval.js
Last active Feb 11, 2016
same as lastvid.js, but instead of a command, it repeats every 45 min. Can be used in conjunction with lastvid.js.
View lastvidInterval.js
* This adds a command "!lastvid" that returns something this foreign API about last youtube video
var modLastvideoInterval = ( function() {
var youtubechannel = "UCBGBxI-fKHJLycHga9tBZUw"; //m3rchant's channel
var repeatTime = 45*60*1000; // milliseconds
Skhmt / lastvid.js
Last active Feb 19, 2016
Custom api for the last youtube video via that user's channel. A module for KoalaBot.
View lastvid.js
* This adds a command "!lastvid" that returns something this foreign API about last youtube video
var modLastvid = ( function() {
apiAddCmd("lastvid", "modLastvid.cmd", "all", "Shows the last youtube video uploaded.");
var _lastvidCmd = function (params, from) {
var youtubechannel = "UCBGBxI-fKHJLycHga9tBZUw"; //m3rchant's channel
Skhmt / howlong.js
Last active Feb 19, 2016
A custom api module for KoalaBot, determines how long someone has been following via an external API.
View howlong.js
* This adds a command "!howlong" or "!howlong (username)" to determine how long someone has been following.
var modHowlong = (function() {
apiAddCmd("howlong", "modHowlong.howlongcmd", "all", "Displays how long someone has been following.");
var _howlongcmd = function (params, from) {
var user = from;
if ( params[0] != null ) {
You can’t perform that action at this time.