Skip to content

Instantly share code, notes, and snippets.

View williamokano's full-sized avatar
🎯
println("Kotlin is nice")

William Okano williamokano

🎯
println("Kotlin is nice")
View GitHub Profile
<?php
/*
##########################################################################
# PHP Benchmark Performance Script #
# © 2010 Code24 BV #
# #
# Author : Alessandro Torrisi #
# Company : Code24 BV, The Netherlands #
# Date : July 31, 2010 #
# version : 1.0 #
{
"_appid": 730,
"_hashName": "Five-SeveN | Forest Night (Field-Tested)",
"_community": {
"_jar": {
"_jar": {
"version": "[email protected]",
"storeType": "MemoryCookieStore",
"rejectPublicSuffixes": true,
"cookies": [
var winston = require('winston');
var steam_user = require('steam-user');
var tradeoffer_manager = require('steam-tradeoffer-manager');
var config = require('./config');
var fs = require('fs');
var market = require('steam-market-pricing');
var logger = new (winston.Logger)({
transports: [
new (winston.transports.Console)({
var keyFile = 'keys/' + config.bot.username + '.key';
fs.readFile('polldata.json', function (err, data) {
if (err) {
logger.warn('Error reading polldata.json');
} else {
logger.debug('Importing previous tradeoffer data');
offers.pollData = JSON.parse(data);
}
});
D:\Projetos\csgodealing-bots\node_modules\steam-client\node_modules\protobufjs\dist\ProtoBuf.js:1769
throw Error("Illegal value for "+this.toString(true)+" of type "+this.type.name+": "+val+" ("+msg+")");
^
Error: Illegal value for [object Object] of type string: object (not a string)
at Error (native)
at null.<anonymous> (D:\Projetos\csgodealing-bots\node_modules\steam-client\node_modules\protobufjs\dist\ProtoBuf.js:1769:23)
at ProtoBuf.Reflect.ElementPrototype.verifyValue (D:\Projetos\csgodealing-bots\node_modules\steam-client\node_modules\protobufjs\dist\ProtoBuf.js:1831:25)
at ProtoBuf.Reflect.FieldPrototype.verifyValue (D:\Projetos\csgodealing-bots\node_modules\steam-client\node_modules\protobufjs\dist\ProtoBuf.js:3436:33)

Fluxo Recebimento

1 - Bot recebe tradeoffer 2 - Bot verifica se é apenas envio, se tiver solicitação de item, cancela e comunica o site 3 - Bot aceita o tradeoffer. Adiciona todos os itens na tabela como status trade aceito 4 - Bot fica esperando a alteração do status para aceita. Os itens podem cair como InEscrow (Hold de itens, mas eventualmente liberam) 5 - Bot comunica o site que recebeu o item 6 - Bot envia o item para outro bot 7 - Bot comunica quem é o dentetor do novo item

Fluxo Envio

[csgodealing]
user = william
group = william
listen = /run/php/php7-csgodealing.sock
listen.owner = www-data
listen.group = www-data
+--------+----------+-----------------------------+------+---------+------------+
| Domain | Method | URI | Name | Action | Middleware |
+--------+----------+-----------------------------+------+---------+------------+
| | GET|HEAD | / | | Closure | web |
| | GET|HEAD | api | | Closure | web |
| | GET|HEAD | api/bot | | Closure | web |
| | GET|HEAD | api/bot/item | | Closure | web |
| | POST | api/bot/item/holder_changed | | Closure | web |
| | POST | api/bot/item/received | | Closure | web |
| | GET|HEAD | api/bot/offers | | Closure | web |
{
"appid": 730,
"contextid": "2",
"assetid": "5828963464",
"classid": "1432174707",
"instanceid": "0",
"amount": 1,
"missing": false,
"icon_url": "-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXU5A1PIYQNqhpOSV-fRPasw8rsUFJ5KBFZv668FFYwnfKfcG9HvN7iktaOkqD1auLTxD5SvZYgiLvFpo7xjVLh-kdrYWnzcoGLMlhpsyM-5vg",
"icon_url_large": "",
[
{
"id": "6073410819",
"classid": "360466399",
"instanceid": "480085569",
"amount": 1,
"pos": 1,
"assetid": "6073410819",
"contextid": "2",
"appid": "730",