Skip to content

Latest commit

ย 

History

History
287 lines (212 loc) ยท 9.67 KB

File metadata and controls

287 lines (212 loc) ยท 9.67 KB

๐Ÿบ Werewolf Discord Bot

Python Discord.py License Version


Warewolf Bot GUI)

๐Ÿ‡ฎ๐Ÿ‡ฉ Indonesia

๐Ÿ“– Deskripsi

Werewolf Discord Bot adalah bot Discord yang berjalan dengan local memungkinkan Anda bermain game Werewolf secara otomatis di server Discord Anda. Bot ini dilengkapi dengan GUI (Graphical User Interface) yang memudahkan pengaturan dan menjalankan bot...

โœจ Fitur Utama

  • ๐ŸŽฎ Game Werewolf Lengkap - Mendukung hingga 10 pemain dengan berbagai role
  • ๐ŸŽญ Role Beragam - Werewolf, Seer, Tough Guy, Witch, Laycan, Villager
  • ๐ŸŒ™ Fase Malam - Werewolf membunuh, Seer menerawang, Witch menyelamatkan
  • ๐Ÿ—ณ๏ธ Sistem Voting - Voting untuk mengeksekusi pemain yang dicurigai
  • ๐Ÿ–ฅ๏ธ GUI Modern - Antarmuka grafis yang mudah digunakan
  • ๐Ÿ”Œ Auto Reconnect - Bot akan mencoba terhubung kembali jika terputus
  • ๐Ÿ“Š Status Monitoring - Monitor status bot dan koneksi internet

๐ŸŽฎ Role dan Kemampuan

Role Alignment Kemampuan
๐Ÿบ Werewolf Jahat Membunuh satu pemain setiap malam (hanya 1 per malam)
๐Ÿ”ฎ Seer Baik Melihat alignment (Baik/Jahat) seorang pemain
๐Ÿ›ก๏ธ Tough Guy Baik Membutuhkan 2 kali serangan untuk mati
๐Ÿง™ Witch Baik Memiliki ramuan penyelamat (1x)
๐ŸŒพ Laycan Jahat Warga desa biasa jika diterawang seer, aligmentnya jahat
๐Ÿ˜๏ธ Villager Baik Warga biasa tanpa kemampuan khusus

๐Ÿ“ Command

Command Deskripsi
/setmod Pilih moderator game
/start Memuali Game (Hanya moderator)
/night Mulai Fase malam (moderator)
/kill Warewolf membunuh pemain
/vote Memulai sesi voting (moderator)
/end Mengakhiri game (moderator)

๐Ÿ“ฆ Cara Install

  1. Download file WerewolfBot-v1.0.0.zip
  2. Extract ke folder pilihan Anda
  3. Jalankan WerewolfBot.exe
  4. Masukkan token bot Discord (dapatkan di Discord Developer Portal)
  5. Klik START BOT

โš™๏ธ Persyaratan Sistem

  • Windows 10 / Windows 11
  • Koneksi internet stabil
  • Token bot Discord (gratis)

๐Ÿ”‘ Cara Mendapatkan Token Bot Discord

1: Buka Discord Developer Portal

https://discord.com/developers/applications

2: Buat Aplikasi Baru

  1. Klik tombol "New Application" di pojok kanan atas

  2. Masukkan nama aplikasi (contoh: Werewolf Bot)

  3. Centang kotak persetujuan dan klik "Create"

3: Buat Bot

  1. Di menu sebelah kiri, klik "Bot"

  2. Klik tombol "Add Bot"

  3. Konfirmasi dengan klik "Yes, do it!"

4: Dapatkan Token Bot

  1. Di bagian "Token", klik "Reset Token"

  2. Konfirmasi dengan klik "Yes, do it!"

  3. Copy token yang muncul

Contoh token: MTIzNDU2Nzg5MDEyMzQ1Njc4OQ.Gxxxxx.xxxxx-xxxxx_xxxxx

โš ๏ธ PENTING: Token ini bersifat rahasia! Jangan bagikan ke siapapun!

5: Invite Bot ke Server

  1. Di menu sebelah kiri, klik "OAuth2" โ†’ "URL Generator"

  2. Di bagian "Scopes", centang:

    • โœ… bot
    • โœ… applications.commands
  3. Di bagian "Bot Permissions", pilih permission yang diperlukan:

    • โœ… Send Messages
    • โœ… Manage Messages
    • โœ… Embed Links
    • โœ… Read Message History
    • โœ… Use Slash Commands

Copy URL yang dihasilkan, paste di browser baru, pilih server, dan klik "Authorize"

๐Ÿ“š Referensi

โš ๏ธ Pemecahan Masalah

โŒ Bot Tidak Online

  • Periksa kembali token yang Anda masukkan
  • Pastikan token sudah di-reset dan disalin dengan benar
  • Cek apakah koneksi internet Anda berfungsi

โŒ Command Tidak Muncul

  • Tunggu 1-2 menit, terkadang perlu waktu untuk sinkronisasi
  • Periksa apakah bot memiliki izin Use Slash Commands
  • Restart bot dengan klik STOP lalu START

โŒ Bot Tidak Bisa Mengirim DM

  • Pastikan pengguna mengizinkan DM dari member server
  • Atau atur di server: Pengaturan Server โ†’ Privasi โ†’ "Izinkan pesan langsung dari member server"

โŒ Error "Improper token"

  • Token tidak valid, reset token di Developer Portal dan salin kembali

๐Ÿš€ Cara Instalasi

1. Clone Repository

git clone https://github.com/yourusername/werewolf-discord-bot.git
cd werewolf-discord-bot
pip install -r requirements.txt

๐Ÿ‡ฌ๐Ÿ‡ง English

๐Ÿ“– Description

Werewolf Discord Bot is a locally-run Discord bot that allows you to play the Werewolf game automatically on your Discord server. The bot comes with a GUI (Graphical User Interface) for easy configuration and management...

โœจ Features

  • ๐ŸŽฎ Full Werewolf Game โ€“ Supports up to 10 players with various roles
  • ๐ŸŽญ Diverse Roles โ€“ Werewolf, Seer, Tough Guy, Witch, Laycan, Villager
  • ๐ŸŒ™ Night Phase โ€“ Werewolf kills, Seer sees, Witch saves
  • ๐Ÿ—ณ๏ธ Voting System โ€“ Vote to execute suspected players
  • ๐Ÿ–ฅ๏ธ Modern GUI โ€“ Easy-to-use graphical interface
  • ๐Ÿ”Œ Auto Reconnect โ€“ Bot attempts to reconnect if disconnected
  • ๐Ÿ“Š Status Monitoring โ€“ Monitor bot status and internet connection

๐ŸŽฎ Roles and Abilities

Role Alignment Ability
๐Ÿบ Werewolf Evil Kills one player each night (only 1 per night)
๐Ÿ”ฎ Seer Good Sees alignment (Good/Evil) of a player
๐Ÿ›ก๏ธ Tough Guy Good Requires 2 attacks to die
๐Ÿง™ Witch Good Has a save potion (1x)
๐ŸŒพ Laycan Evil Ordinary villager but appears Evil to Seer
๐Ÿ˜๏ธ Villager Good Ordinary villager with no special abilities

๐Ÿ“ Commands

Command Description
/setmod Select game moderator
/start Start the game (moderator only)
/night Start night phase (moderator only)
/endnight End night phase (moderator only)
/kill Werewolf kills a player
/terawang Seer sees a player
/vote Start voting session (moderator only)
/end End the game (moderator only)
/status Check game status (moderator only)
/guide Game guide

๐Ÿ“ฆ Installation

  1. Download the file WerewolfBot-v1.0.0.zip
  2. Extract to your preferred folder
  3. Run WerewolfBot.exe
  4. Enter your Discord bot token (get from Discord Developer Portal)
  5. Click START BOT

๐Ÿ“‹ System Requirements

๐Ÿ”‘ How to Get a Discord Bot Token

Step 1: Open Discord Developer Portal

Open your browser and go to: Log in with your Discord account.

Step 2: Create a New Application

  1. Click the "New Application" button in the top right corner
  2. Enter an application name (example: Werewolf Bot)
  3. Check the agreement box and click "Create"

Step 3: Create a Bot

  1. In the left sidebar, click "Bot"
  2. Click the "Add Bot" button
  3. Confirm by clicking "Yes, do it!"

Step 4: Get the Bot Token

  1. In the "Token" section, click "Reset Token"
  2. Confirm by clicking "Yes, do it!"
  3. Copy the token that appears
Example token: MTIzNDU2Nzg5MDEyMzQ1Njc4OQ.Gxxxxx.xxxxx-xxxxx_xxxxx

โš ๏ธ IMPORTANT: This token is secret! Do not share it with anyone!

Step 5: Enable Privileged Gateway Intents

Scroll down to the "Privileged Gateway Intents" section and enable:

  • โœ… MESSAGE CONTENT INTENT (Required to read messages)
  • โœ… SERVER MEMBERS INTENT (Required for member data)

Click "Save Changes" after enabling.

Step 6: Invite Bot to Your Server

  1. In the left sidebar, click "OAuth2" โ†’ "URL Generator"
  2. In the "Scopes" section, check:
  • โœ… bot
  • โœ… applications.commands
  1. In the "Bot Permissions" section, select the required permissions:
  • โœ… Send Messages
  • โœ… Manage Messages
  • โœ… Embed Links
  • โœ… Read Message History
  • โœ… Use Slash Commands
  1. Copy the generated URL, paste it in a new browser tab, select your server, and click "Authorize"

โš ๏ธ Troubleshooting

โŒ Bot Not Online

  • Double-check the token you entered
  • Make sure the token was reset and copied correctly
  • Check if your internet connection is working

โŒ Commands Not Showing

  • Wait 1-2 minutes, sometimes it takes time to sync
  • Check if the bot has the Use Slash Commands permission
  • Restart the bot by clicking STOP then START

โŒ Bot Can't Send DMs

  • Make sure users allow DMs from server members
  • Or configure in server: Server Settings โ†’ Privacy โ†’ "Allow direct messages from server members"

โŒ "Improper token" Error

  • Token is invalid, reset the token in Developer Portal and copy again

๐Ÿ“š References


By following this tutorial, you will have a bot token ready to use with the Werewolf Discord Bot! ๐ŸŽฎ๐Ÿบ

๐Ÿš€ Installation

1. Clone Repository

git clone https://github.com/yourusername/werewolf-discord-bot.git
cd werewolf-discord-bot
pip install -r requirements.txt