Untitled

 avatar
unknown
plain_text
a year ago
789 B
22
No Index
const { Client, GatewayIntentBits } = require('discord.js');
const cron = require('node-cron'); // Cron paketini kullanacağız
const client = new Client({ intents: [GatewayIntentBits.Guilds] });

const YOUR_BOT_TOKEN = 'BOT_TOKENİNİZİ_BURAYA_YERLEŞTİRİN';
const YOUR_USER_ID = 'KENDİ_DISCORD_ID_NUMARANIZ';

client.once('ready', () => {
    console.log(`Bot başarıyla giriş yaptı: ${client.user.tag}`);

    // Her gün saat 00:00'da çalışacak cron görevi
    cron.schedule('0 0 * * *', () => {
        client.users.fetch(YOUR_USER_ID).then(user => {
            // Mesaj göndererek otomatik oy vermeye yönlendirin
            user.send('Günlük oy verme zamanı! Lütfen oy verin: https://top.gg/bot/BOT_ID/vote');
        });
    });
});

client.login(YOUR_BOT_TOKEN);
Editor is loading...
Leave a Comment