Compare commits
2 Commits
a86466efdb
...
1af74e957d
Author | SHA1 | Date | |
---|---|---|---|
1af74e957d | |||
8bfd16a41f |
2
misc.js
2
misc.js
@ -67,7 +67,7 @@ dClient.on("emojiDelete", async emoji => {
|
|||||||
// allow anyone to pin a message via reaction
|
// allow anyone to pin a message via reaction
|
||||||
// todo need enable partials for it to work on old messages
|
// todo need enable partials for it to work on old messages
|
||||||
dClient.on("messageReactionAdd", async (messageReaction) => {
|
dClient.on("messageReactionAdd", async (messageReaction) => {
|
||||||
if (messageReaction.guild.id != config.guildID) return;
|
if (messageReaction.guild?.id != config.guildID) return;
|
||||||
if (messageReaction.emoji.name == "📌" || messageReaction.emoji.name == "📍")
|
if (messageReaction.emoji.name == "📌" || messageReaction.emoji.name == "📍")
|
||||||
await messageReaction.message.pin();
|
await messageReaction.message.pin();
|
||||||
});
|
});
|
||||||
|
@ -127,6 +127,7 @@ global.createMPPbridge = async function createMPPbridge({room, channel, uri}) {
|
|||||||
});
|
});
|
||||||
gClient.prependListener("bye", async msg => {
|
gClient.prependListener("bye", async msg => {
|
||||||
var participant = gClient.ppl[msg.p];
|
var participant = gClient.ppl[msg.p];
|
||||||
|
if (!participant) return;
|
||||||
d.send(`\`${participant._id.substr(0,6)}\` ___**${sanitizeName(participant.name)}** left the room.___`);
|
d.send(`\`${participant._id.substr(0,6)}\` ___**${sanitizeName(participant.name)}** left the room.___`);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user