<commit_before><?php

use hatxor\BotFramework\Bot;
use hatxor\BotFramework\Config;
use hatxor\BotFramework\Helpers;
use hatxor\BotFramework\SkypeBot;
use hatxor\BotFramework\FacebookBot;
use hatxor\BotFramework\WebchatBot;
use hatxor\BotFramework\EmailBot;
use hatxor\BotFramework\TelegramBot;
use hatxor\BotFramework\SlackBot;

/**
 * Here goes your methods to send messages without reply one 
 * event (standalone)
 */
class MyBotServer {

    private $bot;

    private $hash;

    private $client;

    private $secret;


    /**
     * Load the configuration, create a new bot of the given type and do the login
     * @param string $channelID The channel ID
     */
    public function __construct( $channelID ) {

        // 1. Load the config
        $this->loadConfig();

        // 2. Init our bot depending of the channel
        $this->bot = Bot::getBotByChannel( $channelID, $this->client, $this->secret ); // TODO Try / catch para controlar los errores de que no encuentre la clase

        // 3. Do the auth
        $this->bot->authenticate();

    }


    /**
     * Load the configuration from the config.php file
     */
    private function loadConfig() {

        $this->hash = Options::get('hash');

        $this->client = Options::get('app_client_id');

        $this->secret = Options::get('app_secret_id');

    }

    /**
     * ######################################
     * YOU CAN CREATE FROM HERE
     * ######################################
     */


    /**
     * Send a normal message with text to the given user
     * @param  string $to      Recipient ID
     * @param  string $message The message to send
     * @return array           HTTP response
     */
    public function sendMessage( $to, $message ) {

        return $this->bot->addMessage( $to, $message );

    }

}<commit_msg>Fixed the Options trait<commit_after><?php

use hatxor\BotFramework\Bot;
use hatxor\BotFramework\Options;
use hatxor\BotFramework\Helpers;
use hatxor\BotFramework\SkypeBot;
use hatxor\BotFramework\FacebookBot;
use hatxor\BotFramework\WebchatBot;
use hatxor\BotFramework\EmailBot;
use hatxor\BotFramework\TelegramBot;
use hatxor\BotFramework\SlackBot;

/**
 * Here goes your methods to send messages without reply one 
 * event (standalone)
 */
class MyBotServer {

    private $bot;

    private $hash;

    private $client;

    private $secret;


    /**
     * Load the configuration, create a new bot of the given type and do the login
     * @param string $channelID The channel ID
     */
    public function __construct( $channelID ) {

        // 1. Load the config
        $this->loadConfig();

        // 2. Init our bot depending of the channel
        $this->bot = Bot::getBotByChannel( $channelID, $this->client, $this->secret ); // TODO Try / catch para controlar los errores de que no encuentre la clase

        // 3. Do the auth
        $this->bot->authenticate();

    }


    /**
     * Load the configuration from the config.php file
     */
    private function loadConfig() {

        $this->hash = Options::get('hash');

        $this->client = Options::get('app_client_id');

        $this->secret = Options::get('app_secret_id');

    }

    /**
     * ######################################
     * YOU CAN CREATE FROM HERE
     * ######################################
     */


    /**
     * Send a normal message with text to the given user
     * @param  string $to      Recipient ID
     * @param  string $message The message to send
     * @return array           HTTP response
     */
    public function sendMessage( $to, $message ) {

        return $this->bot->addMessage( $to, $message );

    }

}

{'fraction_non_alphanumeric': 0.14754098360655737, 'fraction_numerical': 0.001639344262295082, 'mean_word_length': 2.606896551724138, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2609374', 'n_tokens_mistral': 1095, 'n_tokens_neox': 1017, 'n_words': 319}