3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-19 16:05:01 +00:00

Migrate UsernameSaver to new Plugin structure

This commit is contained in:
Dark 2020-07-16 21:41:50 +02:00
parent e82dff4fa2
commit 0e07b427b6
6 changed files with 69 additions and 0 deletions

View file

@ -0,0 +1,11 @@
import { usernameEvent } from "../types";
import { updateUsername } from "../updateUsername";
export const VoiceChannelJoinEvt = usernameEvent({
event: "voiceChannelJoin",
async listener(meta) {
if (meta.args.member.bot) return;
meta.pluginData.state.updateQueue.add(() => updateUsername(meta.pluginData, meta.args.member.user));
},
});