Compare commits
2 Commits
0fc7ae09df
...
e1d5140b28
Author | SHA1 | Date | |
---|---|---|---|
e1d5140b28 | |||
28fcdf2dc7 |
@ -39,7 +39,7 @@ module.exports.interval = setInterval(async () => {
|
||||
guild.members.cache.filter(m => !m.user.bot).forEach(member => {
|
||||
let lastActivityTime = ds.get(member.user.id);
|
||||
if (!lastActivityTime) return;
|
||||
if (Date.now() - lastActivityTime > 1000*60*60*24) { // if last activity > 24 hours ago
|
||||
if (Date.now() - lastActivityTime > 1000*60*60*72) { // if last activity > 72 hours ago
|
||||
if (!ds.get(member.id + "deactivated"))
|
||||
deactivateMember(member);
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ client.on("messageCreate", async message => {
|
||||
if (message.guild?.id != config.guild) return;
|
||||
if (message.author.bot) 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;
|
||||
message.suppressEmbeds();
|
||||
// suppressing embeds doesn't work on embeds that load after
|
||||
|
Loading…
Reference in New Issue
Block a user