Fix compatibility bugs for discord.py v2.x#1
Open
sudoJ23 wants to merge 5 commits into
Open
Conversation
- Add message_content and messages intents in main.py (required for v2.x) - Fix getallchannel: message.channel.reply() -> await message.reply() - Fix disconnect: .leave() -> voice_client.disconnect() https://claude.ai/code/session_01YFygBUGqY2nQ4mZNRtcBw5
Bug fixes: - Fix >getcat: sekarang reply ke Discord dengan format rapi - Fix guild.py: guild.channels() -> guild.channels, perbaiki referensi variable guilds New features: - >help: tampilkan daftar semua command - >add @user: simpan user ke users.json - >play <url/judul>: putar musik dari YouTube menggunakan yt-dlp - >stop: hentikan musik yang sedang diputar - Error handling pada >join, >disconnect, >play, >stop Other: - Tambah requirements.txt (discord.py, yt-dlp, PyNaCl) - Update voice.py dengan catatan implementasi https://claude.ai/code/session_01YFygBUGqY2nQ4mZNRtcBw5
Discord Server: - >serverinfo: embed info server (member, channel, roles, dll) - >userinfo [@user]: embed info user (id, roles, join date, dll) - >kick @user [alasan]: kick member (admin only) - >ban @user [alasan]: ban member (admin only) - >mute @user <menit>: timeout member (admin only) - >unmute @user: hapus timeout (admin only) - >warn @user <alasan>: beri peringatan, simpan ke warnings.json - >warnings @user: tampilkan daftar peringatan user VPS/System Monitoring: - >sysinfo: CPU, RAM, disk usage, uptime (admin only) - >ping: latency bot dalam ms Other: - >help: update dengan semua command baru dalam format embed - Semua moderation command dilindungi izin admin - Tambah psutil ke requirements.txt - Tambah warnings.json untuk menyimpan data peringatan https://claude.ai/code/session_01YFygBUGqY2nQ4mZNRtcBw5
- >checkattack: parse /var/log/auth.log untuk mendeteksi brute-force SSH, tampilkan top 10 IP penyerang beserta jumlah percobaan (5000 baris terakhir) - >fail2ban: tampilkan semua jail aktif, jumlah IP ter-ban, dan daftar IP yang saat ini di-ban per jail menggunakan fail2ban-client - >connections: tampilkan koneksi ESTABLISHED aktif, highlight koneksi pada port tidak umum sebagai potensi mencurigakan menggunakan psutil - Update >help dengan daftar command security baru - Semua command dilindungi izin admin https://claude.ai/code/session_01YFygBUGqY2nQ4mZNRtcBw5
- Tampilkan semua container (running & stopped) dengan nama, image, status, port - Tampilkan resource usage (CPU%, RAM) tiap container yang sedang running menggunakan docker stats --no-stream - Error handling: docker tidak ada, permission denied, daemon tidak jalan - Update >help dengan command docker baru https://claude.ai/code/session_01YFygBUGqY2nQ4mZNRtcBw5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://claude.ai/code/session_01YFygBUGqY2nQ4mZNRtcBw5