Skip to content

leancoast/Discord-Development-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 

Repository files navigation

πŸŒ™ LunaDev Discord Bot

LunaDev Bot Version Node.js License

Advanced Discord Bot with Tickets, Giveaways, Moderation & More

πŸ‡ΉπŸ‡· TΓΌrkΓ§e | πŸ‡ΊπŸ‡Έ English


πŸ‡ΉπŸ‡· TΓΌrkΓ§e

πŸ“– AΓ§Δ±klama

LunaDev, Discord sunucunuz için gelişmiş âzellikler sunan kapsamlı bir bottur. Modern tasarım, güvenlik ve kullanıcı deneyimi odaklı olarak geliştirilmiştir.

✨ Γ–zellikler

🎫 Gelişmiş Ticket Sistemi

  • Kategorili Ticket Oluşturma - Genel, Teknik, FaturalandΔ±rma, Şikayet
  • Buton TabanlΔ± YΓΆnetim - KullanΔ±cΔ± ekleme/Γ§Δ±karma, kapatma, ΓΌstlenme
  • Otomatik Arşivleme - KapatΔ±lan ticketlar arşiv kategorisine taşınΔ±r
  • Yeniden AΓ§ma - Arşivlenmiş ticketlar tek butonla geri alΔ±nabilir
  • Transkript Sistemi - TΓΌm konuşmalar otomatik kayΔ±t edilir

πŸŽ‰ Γ‡ekiliş Sistemi

  • Canvas TabanlΔ± TasarΔ±m - Siyah-mavi elegant tema
  • Lokalize SΓΌre Girişi - GΓΌn/Saat/Dakika ayrΔ± ayrΔ±
  • CanlΔ± GΓΌncelleme - KatΔ±lΔ±mcΔ± sayΔ±sΔ± otomatik gΓΌncellenir
  • Γ‡ifte KatΔ±lΔ±m KorumasΔ± - AynΔ± kişi 2 kez katΔ±lamaz
  • Otomatik SonlandΔ±rma - Belirtilen sΓΌrede otomatik biter

πŸ‘‹ Hoşgeldin Sistemi

  • Canvas Hoşgeldin KartlarΔ± - Kişiselleştirilmiş tasarΔ±m
  • Otomatik Rol Verme - Yeni ΓΌyelere otomatik rol
  • Dil AlgΔ±lama - Discord locale'e gΓΆre otomatik dil
  • Üye SayΔ±sΔ± Takibi - "Sen X. ΓΌyesin" mesajΔ±

πŸ›‘οΈ Moderasyon AraΓ§larΔ±

  • /sil - Toplu mesaj silme (1-100 arasΔ±)
  • /kitle - Kanal yazma kilitleme
  • /kilitaΓ§ - Kanal kilit aΓ§ma
  • /kisibilgi - DetaylΔ± kullanΔ±cΔ± bilgileri (Canvas ile)

⭐ Geri Bildirim Sistemi

  • YΔ±ldΔ±zlΔ± Değerlendirme - 1-5 yΔ±ldΔ±z sistemi
  • Rol TabanlΔ± Erişim - Sadece Customer rolΓΌ kullanabilir
  • Canvas Feedback KartlarΔ± - GΓΌzel gΓΆrsel tasarΔ±m

πŸ“’ Duyuru Sistemi

  • Toplu DM GΓΆnderimi - TΓΌm ΓΌyelere ΓΆzel mesaj
  • Modal TabanlΔ± - BaşlΔ±k, mesaj, gΓΆrsel desteği
  • Δ°statistik Takibi - BaşarΔ±lΔ±/başarΔ±sΔ±z gΓΆnderim sayΔ±sΔ±

🌐 Γ‡oklu Dil Desteği

  • TΓΌrkΓ§e & Δ°ngilizce - Tam lokalizasyon
  • KullanΔ±cΔ± Tercihi - /language komutu ile değiştirilebilir
  • Otomatik AlgΔ±lama - Discord locale'e gΓΆre

🎨 Canvas Entegrasyonu

  • Hoşgeldin KartlarΔ± - Kişiselleştirilmiş tasarΔ±m
  • Γ‡ekiliş KartlarΔ± - Elegant siyah-mavi tema
  • KullanΔ±cΔ± Bilgi KartlarΔ± - DetaylΔ± profil gΓΆsterimi
  • YardΔ±m MenΓΌsΓΌ - Kategorili Canvas tasarΔ±mΔ±

πŸ’³ Γ–deme Sistemi

  • /ΓΆdeme - TΓΌm ΓΆdeme yΓΆntemlerini gΓΆster
  • GΓΌvenlik UyarΔ±larΔ± - DolandΔ±rΔ±cΔ±lΔ±k korumasΔ±
  • Γ‡oklu Platform - Papara, Δ°ninal, Banka, PayPal, Kripto

πŸš€ Kurulum

1. Gereksinimler

Node.js 18+
npm veya yarn
Discord Application (Bot Token)

2. Projeyi Δ°ndirin

git clone https://github.com/your-username/lunadev-discord-bot.git
cd lunadev-discord-bot

3. Bağımlılıkları Yükleyin

npm install

4. KonfigΓΌrasyon

.env dosyası oluşturun:

# Bot Bilgileri
BOT_TOKEN=your_bot_token_here
CLIENT_ID=your_client_id_here
GUILD_ID=your_guild_id_here

# Rol ID'leri
AUTO_ROLE_ID=your_auto_role_id
ADMIN_ROLE_ID=your_admin_role_id
MOD_ROLE_ID=your_mod_role_id
CUSTOMER_ROLE_ID=your_customer_role_id

# Kanal ID'leri
WELCOME_CHANNEL_ID=your_welcome_channel_id
TICKET_CATEGORY_ID=your_ticket_category_id
ARCHIVE_CATEGORY_ID=your_archive_category_id
TRANSCRIPT_CHANNEL_ID=your_transcript_channel_id
FEEDBACK_CHANNEL_ID=your_feedback_channel_id
LOG_CHANNEL_ID=your_log_channel_id

# Γ–deme Bilgileri (Δ°steğe bağlΔ±)
PAPARA_NUMBER=your_papara_number
ININAL_NUMBER=your_ininal_number
ZIRAAT_IBAN=your_bank_iban
PAYPAL_EMAIL=your_paypal_email
CRYPTO_WALLET=your_crypto_wallet

5. KomutlarΔ± Deploy Edin

npm run deploy

6. Botu Başlatın

npm start          # Auto-restart ile
npm run start-direct  # Direkt başlatma

πŸ“‹ Komutlar

πŸ‘₯ KullanΔ±cΔ± KomutlarΔ±

  • /help - YardΔ±m menΓΌsΓΌ (Canvas ile)
  • /language - Dil değiştirme
  • /ΓΆdeme - Γ–deme yΓΆntemleri
  • /feedback - Geri bildirim bΔ±rakma (Customer rolΓΌ gerekli)

πŸ›‘οΈ Moderasyon KomutlarΔ±

  • /sil [sayΔ±] [kullanΔ±cΔ±] - Mesaj silme
  • /kitle [kanal] [sebep] - Kanal kilitleme
  • /kilitaΓ§ [kanal] [sebep] - Kanal kilit aΓ§ma
  • /kisibilgi [kullanΔ±cΔ±] - KullanΔ±cΔ± bilgileri

πŸŽ‰ Eğlence KomutlarΔ±

  • /giveaway create - Γ‡ekiliş oluşturma

βš™οΈ Sistem KomutlarΔ±

  • /ticket setup - Ticket sistemi kurma
  • /announce - Toplu DM duyuru

πŸ”§ Teknik Γ–zellikler

πŸ—οΈ Mimari

  • Discord.js v14 - En gΓΌncel Discord API
  • SQLite3 - Hafif ve hΔ±zlΔ± veritabanΔ±
  • Canvas - Dinamik gΓΆrsel oluşturma
  • ModΓΌler YapΔ± - Kolay bakΔ±m ve geliştirme

πŸ”’ GΓΌvenlik

  • Environment Variables - GΓΌvenli konfigΓΌrasyon
  • Rol TabanlΔ± Erişim - Yetki kontrolleri
  • Rate Limiting - Spam korumasΔ±
  • Input Validation - GΓΌvenli veri girişi

πŸ“Š Logging

  • Moderasyon LoglarΔ± - TΓΌm işlemler kayΔ±t edilir
  • KullanΔ±cΔ± LoglarΔ± - Üye aktiviteleri takibi
  • Hata YΓΆnetimi - KapsamlΔ± error handling
  • Auto-Restart - Otomatik yeniden başlatma

πŸ‘¨β€πŸ’» Geliştirici

Coast (leancoast)

  • Discord: leancoast
  • GitHub: [Your GitHub Profile]

πŸ“„ Lisans

Bu proje ISC lisansı altında lisanslanmıştır.


πŸ‡ΊπŸ‡Έ English

πŸ“– Description

LunaDev is a comprehensive Discord bot offering advanced features for your Discord server. Developed with a focus on modern design, security, and user experience.

✨ Features

🎫 Advanced Ticket System

  • Categorized Ticket Creation - General, Technical, Billing, Report
  • Button-Based Management - Add/remove users, close, claim
  • Automatic Archiving - Closed tickets moved to archive category
  • Reopen Functionality - Archived tickets can be restored with one button
  • Transcript System - All conversations automatically recorded

πŸŽ‰ Giveaway System

  • Canvas-Based Design - Elegant black-blue theme
  • Localized Time Input - Separate Day/Hour/Minute inputs
  • Live Updates - Participant count updates automatically
  • Duplicate Entry Protection - Same person can't enter twice
  • Automatic Ending - Ends automatically at specified time

πŸ‘‹ Welcome System

  • Canvas Welcome Cards - Personalized design
  • Auto Role Assignment - Automatic role for new members
  • Language Detection - Automatic language based on Discord locale
  • Member Count Tracking - "You are member #X" message

πŸ›‘οΈ Moderation Tools

  • /sil - Bulk message deletion (1-100 range)
  • /kitle - Channel write lock
  • /kilitaΓ§ - Channel unlock
  • /kisibilgi - Detailed user information (with Canvas)

⭐ Feedback System

  • Star Rating - 1-5 star system
  • Role-Based Access - Only Customer role can use
  • Canvas Feedback Cards - Beautiful visual design

πŸ“’ Announcement System

  • Bulk DM Sending - Private message to all members
  • Modal-Based - Title, message, image support
  • Statistics Tracking - Success/failure count

🌐 Multi-Language Support

  • Turkish & English - Full localization
  • User Preference - Changeable with /language command
  • Auto Detection - Based on Discord locale

🎨 Canvas Integration

  • Welcome Cards - Personalized design
  • Giveaway Cards - Elegant black-blue theme
  • User Info Cards - Detailed profile display
  • Help Menu - Categorized Canvas design

πŸ’³ Payment System

  • /ΓΆdeme - Show all payment methods
  • Security Warnings - Fraud protection
  • Multi-Platform - Papara, Δ°ninal, Bank, PayPal, Crypto

πŸš€ Installation

1. Requirements

Node.js 18+
npm or yarn
Discord Application (Bot Token)

2. Clone Project

git clone https://github.com/your-username/lunadev-discord-bot.git
cd lunadev-discord-bot

3. Install Dependencies

npm install

4. Configuration

Create .env file:

# Bot Credentials
BOT_TOKEN=your_bot_token_here
CLIENT_ID=your_client_id_here
GUILD_ID=your_guild_id_here

# Role IDs
AUTO_ROLE_ID=your_auto_role_id
ADMIN_ROLE_ID=your_admin_role_id
MOD_ROLE_ID=your_mod_role_id
CUSTOMER_ROLE_ID=your_customer_role_id

# Channel IDs
WELCOME_CHANNEL_ID=your_welcome_channel_id
TICKET_CATEGORY_ID=your_ticket_category_id
ARCHIVE_CATEGORY_ID=your_archive_category_id
TRANSCRIPT_CHANNEL_ID=your_transcript_channel_id
FEEDBACK_CHANNEL_ID=your_feedback_channel_id
LOG_CHANNEL_ID=your_log_channel_id

# Payment Information (Optional)
PAPARA_NUMBER=your_papara_number
ININAL_NUMBER=your_ininal_number
ZIRAAT_IBAN=your_bank_iban
PAYPAL_EMAIL=your_paypal_email
CRYPTO_WALLET=your_crypto_wallet

5. Deploy Commands

npm run deploy

6. Start Bot

npm start              # With auto-restart
npm run start-direct   # Direct start

πŸ“‹ Commands

πŸ‘₯ User Commands

  • /help - Help menu (with Canvas)
  • /language - Change language
  • /ΓΆdeme - Payment methods
  • /feedback - Leave feedback (Customer role required)

πŸ›‘οΈ Moderation Commands

  • /sil [count] [user] - Delete messages
  • /kitle [channel] [reason] - Lock channel
  • /kilitaΓ§ [channel] [reason] - Unlock channel
  • /kisibilgi [user] - User information

πŸŽ‰ Fun Commands

  • /giveaway create - Create giveaway

βš™οΈ System Commands

  • /ticket setup - Setup ticket system
  • /announce - Bulk DM announcement

πŸ”§ Technical Features

πŸ—οΈ Architecture

  • Discord.js v14 - Latest Discord API
  • SQLite3 - Lightweight and fast database
  • Canvas - Dynamic image generation
  • Modular Structure - Easy maintenance and development

πŸ”’ Security

  • Environment Variables - Secure configuration
  • Role-Based Access - Permission controls
  • Rate Limiting - Spam protection
  • Input Validation - Safe data input

πŸ“Š Logging

  • Moderation Logs - All actions recorded
  • User Logs - Member activity tracking
  • Error Handling - Comprehensive error management
  • Auto-Restart - Automatic restart on crash

πŸ› οΈ Setup Guide

Discord Bot Setup

  1. Go to Discord Developer Portal
  2. Create new application
  3. Go to "Bot" section
  4. Create bot and copy token
  5. Enable all Privileged Gateway Intents
  6. Go to "OAuth2" β†’ "URL Generator"
  7. Select "bot" and "applications.commands"
  8. Select required permissions
  9. Invite bot to your server

Server Setup

  1. Create required channels and categories
  2. Create required roles
  3. Copy IDs to .env file
  4. Run npm run setup for guided setup
  5. Deploy commands with npm run deploy
  6. Start bot with npm start

πŸ“Š Database Schema

Tables

  • user_settings - User language preferences
  • tickets - Ticket information and status
  • feedback - User feedback and ratings
  • giveaways - Giveaway data and participants
  • server_settings - Server-specific configurations

🎨 Canvas Features

Welcome Cards

  • Grid Background - Elegant pattern
  • Blue Gradient Text - Modern typography
  • User Avatar - Circular with glow effect
  • Member Count - Dynamic member tracking
  • Localized Content - Language-specific text

Giveaway Cards

  • Black-Blue Theme - Professional design
  • Info Cards - Participants, Time, Host
  • Real-time Updates - Live participant count
  • Clean Typography - No emoji clutter

πŸ”„ Auto-Restart System

The bot includes a process manager (start.js) that automatically restarts the bot if it crashes:

  • Max Restarts: 10 attempts
  • Restart Delay: 5 seconds
  • Graceful Shutdown: Ctrl+C handling
  • Stability Reset: Counter resets after 5 minutes

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test thoroughly
  5. Submit a pull request

πŸ“ž Support

For support or questions:

πŸ‘¨β€πŸ’» Developer

Coast (leancoast)

πŸ™ Acknowledgments

  • Discord.js community for the excellent library
  • Canvas contributors for image generation capabilities
  • SQLite team for the reliable database engine

πŸ“„ License

This project is licensed under the ISC License.


Made with ❀️ by Coast

Discord GitHub

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published