3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-17 15:15:02 +00:00

Use actions/events for plugin interoperability. Move base case and mute functionality to their own plugins.

This commit is contained in:
Dragory 2018-11-25 17:04:26 +02:00
parent 993b38db74
commit 1020747398
14 changed files with 674 additions and 332 deletions

17
src/PluginRuntimeError.ts Normal file
View file

@ -0,0 +1,17 @@
import util from "util";
export class PluginRuntimeError {
public message: string;
public pluginName: string;
public guildId: string;
constructor(message: string, pluginName: string, guildId: string) {
this.message = message;
this.pluginName = pluginName;
this.guildId = guildId;
}
[util.inspect.custom](depth, options) {
return `PRE [${this.pluginName}] [${this.guildId}] ${this.message}`;
}
}