Skip to content

Commit

Permalink
URL Koruma Kalktı
Browse files Browse the repository at this point in the history
self Ne Kimse Bilmiyo Açıklama Yapmaktansa Kaldırdım Meh
  • Loading branch information
Bes-js committed Jan 23, 2024
1 parent 2c1002c commit 2718932
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Shields/beş.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ const { YamlDatabase } = require('five.db');
const { readdir } = require('fs');
let { log } = console;
const { codeBlock } = require('@discordjs/formatters');
const { VanityClient } = require('discord-url');
const urlClient = new VanityClient(conf.selfBotToken, conf.guildID, true)


let mainShield = global.mainShield = new BEŞ();
let roleShield = new BEŞ();
Expand Down Expand Up @@ -401,7 +400,6 @@ mainShield.on(Events.GuildUpdate, async (oldGuild, newGuild) => {
let member = await oldGuild.guild.members.fetch(entry.executor.id);
let response = member.bannable ? "Ceza Uyguladım!" : "Yetkim Yetmediği İçin Ceza Uygulayamadım!"
if (member && member.bannable) { await punish(mainShield, member.id, conf.Process.urlUpdate) }
urlClient.setVanityURL(conf.vanityURL).catch(err=>{});
await send(`
> **${entry.executor} Kullanıcısı URL Üzerinde İşlem Gerçekleştirdi! ${response}**
Expand All @@ -412,9 +410,7 @@ mainShield.on(Events.GuildUpdate, async (oldGuild, newGuild) => {
> **Unix Zaman: <t:${Math.floor(Date.now() / 1000)}:R>**`, entry.executor)
}
});
urlClient.on("VanitySuccess", async (response) => { log(`${response.vanityURL} URL'si Başarıyla Alındı`) })
urlClient.on('VanityError', async (error) => { log(`URL Alınırken Bir Hata Meydana Geldi!!\nHata; ${error.error}`); })
}


mainShield.on(Events.GuildUpdate, async (oldGuild, newGuild) => {
if ((oldGuild.splash !== newGuild.splash) || (oldGuild.iconURL() !== newGuild.iconURL()) || (oldGuild.name !== newGuild.name) || (oldGuild.bannerURL() !== newGuild.bannerURL())) {
Expand Down

0 comments on commit 2718932

Please sign in to comment.