Facebook
From Bistre Goose, 3 Years ago, written in Plain Text.
This paste is a reply to Untitled from Thundering Lemur - view diff
Embed
Download Paste or View Raw
Hits: 164
  1. const Discord = require('discord.js');
  2. const bot = new Discord.Client()
  3. const express = require('express');
  4. const app = express();
  5. const http = require('http');
  6. const readycode = new Discord.ShardingManager('./bot.js', {
  7.     totalShards: '5', // shard sayısı girin.
  8.     token: "BOT TOKENI" // bot tokenini giriniz
  9. });
  10.  
  11. readycode.spawn();
  12.  
  13. readycode.on('launch', shard => {
  14.   console.log(`Şu Iddeki Shard Başlatıldı: ${shard.id}!`)
  15. });
  16.  
  17. setTimeout(() => {
  18.     readycode.broadcastEval("process.exit()");
  19. }, 21600000);
  20.  
  21. //Package.json da Start ve maini değiştirmeyi unutmayın.
  22. // Ayrıca const readycode = new Discord.ShardingManager('./bot.js', { Buradaki bölümde Bot.js yazan yere main isminiz neyse onu yazın.
  23. //Main isimleri genelde bot.js index.js oluyor.

Replies to Untitled rss

Title Name Language When
Shard Asistan Code text 3 Years ago.