Telegram Group & Telegram Channel
<?php

namespace SpidrX;

require 'vendor/autoload.php';

use Discord\Discord;
use Discord\Parts\User\Member;
use Discord\WebSockets\WebSocket;

// Replace with your bot token
$token = 'YOUR_BOT_TOKEN';

// Create a new Discord instance
$discord = new Discord([
    'token' => $token,
]);

// Register the femininity command
$discord->on('message', function (Message $message) use ($discord) {
    if ($message->content === '!femininity') {
        $femininity_test = new FemininityTest($message);
        $discord->loop->addPeriodicTimer(1, [$femininity_test, 'sendQuestion']);
    }
});

// Femininity test class
class FemininityTest
{
    private $message;
    private $questions;
    private $answers;
    private $female_questions;
    private $male_questions;
    private $female_points;
    private $male_points;
    private $current_question;

    public function __construct(Message $message)
    {
        $this->message = $message;
        $this->questions = [
            'أحب ارتداء الفساتين والتنانير أكثر من البناطيل.',
            'أفضل قضاء الوقت مع الأصدقاء على البقاء بمفردي.',
            'أهتم كثيرًا بمظهري.',
            'أجد صعوبة في قول "لا" للآخرين.',
            'أحب لمس الأشياء الناعمة والمريح.',
            'أشعر عادة بالتعاطف مع الآخرين.',
            'أحب مشاهدة الأفلام الرومانسية أكثر من أفلام الأكشن.',
            'أفضل التحدث عن المشاعر بدلاً من حل المشكلات.',
            'أحب طهي الطعام وتزيين المنزل.',
            'أشعر براحة أكبر عندما أكون محاطًا بأشخاص آخرين.',
        ];
        $this->answers = ['نعم', 'لا'];
        $this->female_questions = [2, 4, 6, 8, 10];
        $this->male_questions = [1, 3, 5, 7, 9];
        $this->female_points = 0;
        $this->male_points = 0;
        $this->current_question = 0;
    }

    public function sendQuestion()
    {
        if ($this->current_question < count($this->questions)) {
            $question = $this->questions[$this->current_question];
            $this->message->reply($question);
            $this->message->channel->awaitMessage(function (Message $message) {
                return $message->author->id === $this->message->author->id;
            }, [
                'timeout' => 60
            ])->then(function (Message $message) {
                $this->handleAnswer($message->content);
            });
            $this->current_question++;
        } else {
            $femininity_percentage = $this->calculateFemininity();
            $this->message->reply("نسبه الانوثة لديك هي: {$femininity_percentage}%");
        }
    }

    private function handleAnswer($answer)
    {
        if (in_array($answer, $this->answers)) {
            if ($answer === 'نعم') {
                if (in_array($this->current_question, $this->female_questions)) {
                    $this->female_points++;
                } else {
                    $this->male_points++;
                }
            } else {
                if (in_array($this->current_question, $this->male_questions)) {
                    $this->male_points++;
                } else {
                    $this->female_points++;
                }
            }
        } else {
            $this->message->reply('إجابة غير صحيحة. يرجى الإجابة بنعم أو لا.');
        }
    }

    private function calculateFemininity()
    {
        return ($this->female_points / ($this->female_points + $this->male_points)) * 100;
    }
}

// Start the Discord bot
$discord->run();


بوت اختبار نسبه الانوثه يعطيك اسئله وانت تجاوب وبعدين حدد نسبه انوثتك
بلغه php 😂😂😂



tg-me.com/SpidrX/2298
Create:
Last Update:

<?php

namespace SpidrX;

require 'vendor/autoload.php';

use Discord\Discord;
use Discord\Parts\User\Member;
use Discord\WebSockets\WebSocket;

// Replace with your bot token
$token = 'YOUR_BOT_TOKEN';

// Create a new Discord instance
$discord = new Discord([
    'token' => $token,
]);

// Register the femininity command
$discord->on('message', function (Message $message) use ($discord) {
    if ($message->content === '!femininity') {
        $femininity_test = new FemininityTest($message);
        $discord->loop->addPeriodicTimer(1, [$femininity_test, 'sendQuestion']);
    }
});

// Femininity test class
class FemininityTest
{
    private $message;
    private $questions;
    private $answers;
    private $female_questions;
    private $male_questions;
    private $female_points;
    private $male_points;
    private $current_question;

    public function __construct(Message $message)
    {
        $this->message = $message;
        $this->questions = [
            'أحب ارتداء الفساتين والتنانير أكثر من البناطيل.',
            'أفضل قضاء الوقت مع الأصدقاء على البقاء بمفردي.',
            'أهتم كثيرًا بمظهري.',
            'أجد صعوبة في قول "لا" للآخرين.',
            'أحب لمس الأشياء الناعمة والمريح.',
            'أشعر عادة بالتعاطف مع الآخرين.',
            'أحب مشاهدة الأفلام الرومانسية أكثر من أفلام الأكشن.',
            'أفضل التحدث عن المشاعر بدلاً من حل المشكلات.',
            'أحب طهي الطعام وتزيين المنزل.',
            'أشعر براحة أكبر عندما أكون محاطًا بأشخاص آخرين.',
        ];
        $this->answers = ['نعم', 'لا'];
        $this->female_questions = [2, 4, 6, 8, 10];
        $this->male_questions = [1, 3, 5, 7, 9];
        $this->female_points = 0;
        $this->male_points = 0;
        $this->current_question = 0;
    }

    public function sendQuestion()
    {
        if ($this->current_question < count($this->questions)) {
            $question = $this->questions[$this->current_question];
            $this->message->reply($question);
            $this->message->channel->awaitMessage(function (Message $message) {
                return $message->author->id === $this->message->author->id;
            }, [
                'timeout' => 60
            ])->then(function (Message $message) {
                $this->handleAnswer($message->content);
            });
            $this->current_question++;
        } else {
            $femininity_percentage = $this->calculateFemininity();
            $this->message->reply("نسبه الانوثة لديك هي: {$femininity_percentage}%");
        }
    }

    private function handleAnswer($answer)
    {
        if (in_array($answer, $this->answers)) {
            if ($answer === 'نعم') {
                if (in_array($this->current_question, $this->female_questions)) {
                    $this->female_points++;
                } else {
                    $this->male_points++;
                }
            } else {
                if (in_array($this->current_question, $this->male_questions)) {
                    $this->male_points++;
                } else {
                    $this->female_points++;
                }
            }
        } else {
            $this->message->reply('إجابة غير صحيحة. يرجى الإجابة بنعم أو لا.');
        }
    }

    private function calculateFemininity()
    {
        return ($this->female_points / ($this->female_points + $this->male_points)) * 100;
    }
}

// Start the Discord bot
$discord->run();


بوت اختبار نسبه الانوثه يعطيك اسئله وانت تجاوب وبعدين حدد نسبه انوثتك
بلغه php 😂😂😂

BY SPIDER-X


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 280

Share with your friend now:
tg-me.com/SpidrX/2298

View MORE
Open in Telegram


SPIDER X️ Telegram | DID YOU KNOW?

Date: |

Telegram today rolling out an update which brings with it several new features.The update also adds interactive emoji. When you send one of the select animated emoji in chat, you can now tap on it to initiate a full screen animation. The update also adds interactive emoji. When you send one of the select animated emoji in chat, you can now tap on it to initiate a full screen animation. This is then visible to you or anyone else who's also present in chat at the moment. The animations are also accompanied by vibrations. This is then visible to you or anyone else who's also present in chat at the moment. The animations are also accompanied by vibrations.

Pinterest (PINS) Stock Sinks As Market Gains

Pinterest (PINS) closed at $71.75 in the latest trading session, marking a -0.18% move from the prior day. This change lagged the S&P 500's daily gain of 0.1%. Meanwhile, the Dow gained 0.9%, and the Nasdaq, a tech-heavy index, lost 0.59%. Heading into today, shares of the digital pinboard and shopping tool company had lost 17.41% over the past month, lagging the Computer and Technology sector's loss of 5.38% and the S&P 500's gain of 0.71% in that time. Investors will be hoping for strength from PINS as it approaches its next earnings release. The company is expected to report EPS of $0.07, up 170% from the prior-year quarter. Our most recent consensus estimate is calling for quarterly revenue of $467.87 million, up 72.05% from the year-ago period.

SPIDER X️ from kr


Telegram SPIDER-X
FROM USA