Compare commits
No commits in common. "1af74e957d206b508463d7d86a7a594e879be235" and "a86466efdbea3d898b686cd9fff9a60dae5a28b7" have entirely different histories.
1af74e957d
...
a86466efdb
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,7 +127,6 @@ 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