Skip to content

Instantly share code, notes, and snippets.

@Jiiks

Jiiks/bdpt.js Secret

Last active August 24, 2019 16:24
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Jiiks/71edd5af0beafcd08956 to your computer and use it in GitHub Desktop.
Save Jiiks/71edd5af0beafcd08956 to your computer and use it in GitHub Desktop.
BetterDiscord plugin template
//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";
};
@davidovski
Copy link

this is very handy :D

@CoolJoe2002
Copy link

''''''''''''''''''''''

@Reubencfernandes
Copy link

whats the use of this code

@newtykip
Copy link

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