typing-avatars: scaffold new plugin
This commit is contained in:
parent
9c2ba16fcf
commit
91862610cb
2 changed files with 22 additions and 0 deletions
11
plugins/typing-avatars/manifest.json
Normal file
11
plugins/typing-avatars/manifest.json
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"name": "TypingAvatars",
|
||||
"description": "Replaces the \"X is typing...\" indicator with the avatars of whoever's typing.",
|
||||
"authors": [
|
||||
{ "name": "Rosie" }
|
||||
],
|
||||
"main": "src/index.ts",
|
||||
"vendetta": {
|
||||
"icon": "ic_group"
|
||||
}
|
||||
}
|
||||
11
plugins/typing-avatars/src/index.ts
Normal file
11
plugins/typing-avatars/src/index.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { logger } from "@vendetta";
|
||||
import { applyPatches } from "@shared/lib/patcher";
|
||||
|
||||
let unpatchAll: () => void = () => {};
|
||||
|
||||
export default {
|
||||
onLoad: () => {
|
||||
unpatchAll = applyPatches("TypingAvatars", logger, {});
|
||||
},
|
||||
onUnload: () => unpatchAll()
|
||||
};
|
||||
Loading…
Add table
Reference in a new issue