mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 20:35:02 +00:00
Finish preliminary rework, ready to test
This commit is contained in:
parent
57893e7f76
commit
d0a1beb809
177 changed files with 854 additions and 707 deletions
|
@ -54,9 +54,7 @@ export const FollowCmd = locateUserCmd({
|
|||
sendSuccessMessage(
|
||||
pluginData,
|
||||
msg.channel,
|
||||
`Every time <@${args.member.id}> joins or switches VC in the next ${humanizeDuration(
|
||||
time,
|
||||
)} i will notify you`,
|
||||
`Every time <@${args.member.id}> joins or switches VC in the next ${humanizeDuration(time)} i will notify you`,
|
||||
);
|
||||
}
|
||||
},
|
||||
|
|
|
@ -6,7 +6,7 @@ export const VoiceStateUpdateAlertEvt = locateUserEvt({
|
|||
event: "voiceStateUpdate",
|
||||
|
||||
async listener(meta) {
|
||||
const memberId = meta.args.oldState.member ? meta.args.oldState.member.id : meta.args.newState.member!.id;
|
||||
const memberId = meta.args.oldState.member ? meta.args.oldState.member.id : meta.args.newState.member!.id;
|
||||
|
||||
if (meta.args.newState.channel != null) {
|
||||
if (meta.pluginData.state.usersWithAlerts.includes(memberId)) {
|
||||
|
@ -20,8 +20,8 @@ export const VoiceStateUpdateAlertEvt = locateUserEvt({
|
|||
const txtChannel = meta.pluginData.guild.channels.resolve(alert.channel_id) as TextChannel;
|
||||
txtChannel.send(
|
||||
`🔴 <@!${alert.requestor_id}> the user <@!${alert.user_id}> disconnected out of \`<#!${voiceChannel.id}>\``,
|
||||
);
|
||||
});
|
||||
);
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
||||
|
|
|
@ -13,7 +13,7 @@ export async function moveMember(
|
|||
if (modMember.voice.channelID != null) {
|
||||
try {
|
||||
await modMember.edit({
|
||||
channel: target.voice.channelID
|
||||
channel: target.voice.channelID,
|
||||
});
|
||||
} catch {
|
||||
sendErrorMessage(pluginData, errorChannel, "Failed to move you. Are you in a voice channel?");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue