doaddbot.php

来自「flashget43的源代码 一个比较常用的下载程序」· PHP 代码 · 共 14 行

PHP
14
字号
<?php
	$user_id = $GLOBALS['fc_config']['bot']->getNextId();

	if($GLOBALS['fc_config']['bot']->connectUser2Bot($user_id, $login, $bot))
	{
		$txt = "<b>Bot '$login' was added succesfully.</b>";
		$this->sendToUser(null, new Message('msg', $this->userid, $GLOBALS['fc_config']['liveSupportMode']?$this->roomid:null, $txt, $this->color));
	}
	else
	{
		$txt = "<b>Bot '$login' was not added.</b>";
		$this->sendToUser(null, new Message('msg', $this->userid, $GLOBALS['fc_config']['liveSupportMode']?$this->roomid:null, $txt, $this->color));
	}
?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?