Compare commits
No commits in common. "e1d5140b2844e09932bfaa53a491c642a0a86278" and "0fc7ae09df5da43a5089f40aeb324135f58377b8" have entirely different histories.
e1d5140b28
...
0fc7ae09df
@ -39,7 +39,7 @@ module.exports.interval = setInterval(async () => {
|
|||||||
guild.members.cache.filter(m => !m.user.bot).forEach(member => {
|
guild.members.cache.filter(m => !m.user.bot).forEach(member => {
|
||||||
let lastActivityTime = ds.get(member.user.id);
|
let lastActivityTime = ds.get(member.user.id);
|
||||||
if (!lastActivityTime) return;
|
if (!lastActivityTime) return;
|
||||||
if (Date.now() - lastActivityTime > 1000*60*60*72) { // if last activity > 72 hours ago
|
if (Date.now() - lastActivityTime > 1000*60*60*24) { // if last activity > 24 hours ago
|
||||||
if (!ds.get(member.id + "deactivated"))
|
if (!ds.get(member.id + "deactivated"))
|
||||||
deactivateMember(member);
|
deactivateMember(member);
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@ client.on("messageCreate", async message => {
|
|||||||
if (message.guild?.id != config.guild) return;
|
if (message.guild?.id != config.guild) return;
|
||||||
if (message.author.bot) return;
|
if (message.author.bot) return;
|
||||||
if (message.author.id == client.user.id) return;
|
if (message.author.id == client.user.id) return;
|
||||||
let pixiv_urls = new Set(message.content.match(/(?<!\/)https?:\/\/(?:www\.)?pixiv\.net(?:\/en)?\/artworks\/\d+\b/g));
|
let pixiv_urls = new Set(message.content.match(/https?:\/\/(?:www\.)?pixiv\.net(?:\/en)?\/artworks\/\d+\b/g));
|
||||||
if (!pixiv_urls.size) return;
|
if (!pixiv_urls.size) return;
|
||||||
message.suppressEmbeds();
|
message.suppressEmbeds();
|
||||||
// suppressing embeds doesn't work on embeds that load after
|
// suppressing embeds doesn't work on embeds that load after
|
||||||
|
Loading…
Reference in New Issue
Block a user