本文整理汇总了TypeScript中steam.SteamClient.MsgToAll方法的典型用法代码示例。如果您正苦于以下问题:TypeScript SteamClient.MsgToAll方法的具体用法?TypeScript SteamClient.MsgToAll怎么用?TypeScript SteamClient.MsgToAll使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类steam.SteamClient
的用法示例。
在下文中一共展示了SteamClient.MsgToAll方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: function
http.post("/", function (request, response)
{
console.log("HTTP 200/ " + request.method);
if (request.method == "POST")
{
// console.log(require('util').inspect(request.body, false, null));
if (request.body.password == SRVPW)
{
console.log("Requesting admin from: " + request.body.ip);
if (bot.loggedOn)
{
var AdminMsg = "Incoming Report!\n";
AdminMsg += request.body.user + " (" + request.body.steamid + ") reported " + request.body.reported_user + "(" + request.body.reported_steamid + ") with reason:\n";
AdminMsg += request.body.message + "\n";
AdminMsg += "Server: steam://connect/" + request.body.ip + "/";
bot.MsgToAll(AdminMsg);
}
response.send({ status: 1 });
return;
}
response.send({ status: 0 });
return;
}
response.send({ status: -1 });
});