当前位置: 首页>>代码示例>>PHP>>正文


PHP Chat::getChat方法代码示例

本文整理汇总了PHP中Chat::getChat方法的典型用法代码示例。如果您正苦于以下问题:PHP Chat::getChat方法的具体用法?PHP Chat::getChat怎么用?PHP Chat::getChat使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Chat的用法示例。


在下文中一共展示了Chat::getChat方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getSpecific

 public function getSpecific()
 {
     $username = Input::get('username');
     $chat = new Chat();
     $result = $chat->getChat($username);
     return json_encode($result);
 }
开发者ID:centaurustech,项目名称:sagip,代码行数:7,代码来源:ChatController.php

示例2: checkChat

<?php

require 'classes/chat.class.php';
require 'classes/authenticate.class.php';
require 'login_credentials.php';
global $Chat;
global $Authenticate;
$Chat = new Chat($channel, $twitch, $username);
$Authenticate = new Authenticate($channel);
while (true) {
    checkChat($Chat->getChat(), $username, $password, $mod, $color);
    sleep(2);
}
function checkChat($message, $username, $password, $mod, $color)
{
    global $Chat;
    global $Authenticate;
    $Login = $Authenticate->Login($username, $password);
    $joinChannel = $Authenticate->joinChannel($mod, $color, $Login['remember_me'], $Login['account_token'], $Login['mlg_id'], $Login['mlg_login']);
    if (isset($message['Reply'])) {
        if ($Authenticate->sendMsg($message['Reply'], $joinChannel['SendData'], $joinChannel['Cookie']) != "OK") {
            echo "Message Failed to Send!\n";
        }
    }
}
开发者ID:TimothyCole,项目名称:MLG.tv-Moved-to-Twitch.tv-Bot,代码行数:25,代码来源:run.php

示例3: viewChat

 public function viewChat()
 {
     $arrReturn = [];
     if (Input::has('chatter_id')) {
         $chatterId = Input::get('chatter_id');
         if (strlen($chatterId) == 24) {
             return Response::json(Chat::getChat($chatterId));
         }
     }
     return $arrReturn;
 }
开发者ID:nguyendaivu,项目名称:imagestock,代码行数:11,代码来源:AdminController.php


注:本文中的Chat::getChat方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。