npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

oxypack

v1.2.0

Published

Discord bot activity manager with random activities

Readme

OxyPack

Discord botunuz için dinamik ve esnek aktivite sistemi. Belirli aralıklarla otomatik olarak değişen bot aktiviteleri oluşturun ve webhook entegrasyonuyla aktivite değişimlerini takip edin.

npm version npm downloads License

📦 Kurulum

npm install oxypack

🚀 Özellikler

  • 🔄 Otomatik değişen bot aktiviteleri
  • 🎮 Farklı aktivite türleri (Oynuyor, İzliyor, Dinliyor, Yayında, vb.)
  • ⏱️ Özelleştirilebilir zaman aralıkları
  • 📊 Discord Webhook entegrasyonu
  • 🛠️ Kolay konfigürasyon ve kurulum

📚 Kullanım

Temel Kullanım

const { Client, GatewayIntentBits } = require('discord.js');
const { oxy, oxypack } = require('oxypack');

const client = new Client({
  intents: [GatewayIntentBits.Guilds]
});

client.on('ready', () => {
  console.log(`${client.user.tag} ile giriş yapıldı!`);
  
  // Hazır Oxy presetini kullanın
  oxy(client);
});

client.login('TOKEN');

Webhook ile Kullanım

const { Client, GatewayIntentBits } = require('discord.js');
const { oxy } = require('oxypack');

const client = new Client({
  intents: [GatewayIntentBits.Guilds]
});

client.on('ready', () => {
  console.log(`${client.user.tag} ile giriş yapıldı!`);
  
  // Webhook URL'si ile
  const webhook = "https://discord.com/api/webhooks/your-webhook-url";
  oxy(client, webhook);
});

client.login('TOKEN');

Config Dosyası ile Kullanım

const { Client, GatewayIntentBits } = require('discord.js');
const { oxy } = require('oxypack');
const config = require('./config.json'); // { "webhook": "https://..." }

const client = new Client({
  intents: [GatewayIntentBits.Guilds]
});

client.on('ready', () => {
  console.log(`${client.user.tag} ile giriş yapıldı!`);
  
  // Config dosyasından webhook kullanımı
  oxy(client, config);
});

client.login('TOKEN');

Özel Aktiviteler ile Kullanım

const { Client, GatewayIntentBits } = require('discord.js');
const { oxypack } = require('oxypack');

const client = new Client({
  intents: [GatewayIntentBits.Guilds]
});

client.on('ready', () => {
  console.log(`${client.user.tag} ile giriş yapıldı!`);
  
  // Özel aktiviteler tanımlayın
  const activities = [
    { name: 'Müzik', type: 'listening', status: 'online' },
    { name: 'Minecraft', type: 'playing', status: 'idle' },
    { name: 'YouTube', type: 'watching', status: 'dnd' },
    { name: 'Twitch Yayını', type: 'streaming', url: 'https://twitch.tv/yourusername', status: 'online' }
  ];
  
  // oxypack kullanarak özel aktiviteler ve webhook ile
  oxypack(client, activities, 60000, true, config.webhook);
});

client.login('TOKEN');

📋 Fonksiyon Referansları

oxy(client, webhook)

Basit ve hızlı bir şekilde botunuza değişen aktiviteler ekler. Her 15 saniyede bir farklı bir aktivite ayarlar ve bot durumunu her zaman "idle" olarak ayarlar.

| Parametre | Tip | Açıklama | Varsayılan | |-----------|-----|----------|------------| | client | Object | Discord.js client nesnesi | (Zorunlu) | | webhook | String veya Object | Discord webhook URL'si veya webhook bilgisini içeren obje | null |

oxypack(client, activities, interval, logActivity, webhook)

Daha gelişmiş özelleştirme sağlayan ve özel aktiviteler belirlemenize olanak tanıyan fonksiyon.

| Parametre | Tip | Açıklama | Varsayılan | |-----------|-----|----------|------------| | client | Object | Discord.js client nesnesi | (Zorunlu) | | activities | Array | Aktivite bilgilerini içeren dizi | (Zorunlu) | | interval | Number | Aktivite değişim süresi (ms) | 120000 (2 dakika) | | logActivity | Boolean | Aktivite değişimlerini konsola yazdırma | true | | webhook | String veya Object | Discord webhook URL'si veya webhook bilgisini içeren obje | null |

📝 Aktivite Yapısı

Aktivite nesnesi aşağıdaki özelliklere sahip olabilir:

{
  name: 'Aktivite Adı', // Gösterilecek metin
  type: 'playing',      // Aktivite türü: 'playing', 'watching', 'listening', 'competing', 'streaming'
  url: 'https://...',   // Streaming türü için gerekli URL (opsiyonel)
  status: 'online'      // Bot durumu: 'online', 'idle', 'dnd', 'invisible' (opsiyonel)
}

🔔 Webhook Bildirimleri

Webhook özelliği etkinleştirildiğinde, her aktivite değişiminde aşağıdaki bilgileri içeren bir embed mesajı webhook'a gönderilir:

  • Aktivite İsmi
  • Aktivite Türü
  • Bot Durumu
  • URL (eğer varsa)
  • Zaman damgası

📃 Örnek config.json

{
  "token": "your-discord-bot-token",
  "webhook": "https://discord.com/api/webhooks/your-webhook-url",
  "prefix": "!",
  "botSettings": {
    "activityInterval": 60000
  }
}

📄 Lisans

Bu proje MIT Lisansı altında lisanslanmıştır.

👨‍💻 Geliştirici

Oxy tarafından geliştirilmiştir.


🌟 OxyPack'i beğendiyseniz yıldız vermeyi unutmayın! 🌟