コード例 #1
0
ファイル: WhatsBot.php プロジェクト: kumar003vinod/WhatsBot
<?php

require_once 'class/WhatsBot.php';
# Config
$Debug = false;
Std::Out('Starting WhatsBot...');
$W = new WhatsBot($Debug);
$W->Start();
$W->Listen();
コード例 #2
0
ファイル: WhatsBot.php プロジェクト: hasanalom/WhatsBot
<?php

require_once __DIR__ . '/class/WhatsBot.php';
# Debug
$Arguments = getopt('d', array('debug'));
$Debug = isset($Arguments['d']) || isset($Arguments['debug']);
# Start
Std::Out('Starting WhatsBot...');
$WhatsBot = new WhatsBot($Debug);
$WhatsBot->Start();
$WhatsBot->Listen();