-
-
Save Jiiks/71edd5af0beafcd08956 to your computer and use it in GitHub Desktop.
BetterDiscord plugin template
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
//META{"name":"testPlugin"}*// | |
var testPlugin = function () {}; | |
testPlugin.prototype.start = function () { | |
}; | |
testPlugin.prototype.load = function () { | |
}; | |
testPlugin.prototype.unload = function () {} | |
; | |
testPlugin.prototype.stop = function () { | |
}; | |
testPlugin.prototype.onMessage = function () { | |
//called when a message is received | |
}; | |
testPlugin.prototype.onSwitch = function () { | |
//called when a server or channel is switched | |
}; | |
testPlugin.prototype.observer = function (e) { | |
//raw MutationObserver event for each mutation | |
}; | |
testPlugin.prototype.getSettingsPanel = function () { | |
return "<h3>Settings Panel</h3>"; | |
}; | |
testPlugin.prototype.getName = function () { | |
return "Test Plugin"; | |
}; | |
testPlugin.prototype.getDescription = function () { | |
return "Test Plugin"; | |
}; | |
testPlugin.prototype.getVersion = function () { | |
return "0.1.0"; | |
}; | |
testPlugin.prototype.getAuthor = function () { | |
return "Jiiks"; | |
}; |
''''''''''''''''''''''
whats the use of this code
whats the use of this code
It is a template for a plugin for BetterDiscord, as the title of the gist says. It just gets people started.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is very handy :D