From 1b6bb9c1b32208e50cea5acdcd0f8152a6419143 Mon Sep 17 00:00:00 2001 From: magnolia-fan Date: Sun, 10 Apr 2011 09:01:11 +0400 Subject: [PATCH] Bot debug --- app/helpers/vkontakte.rb | 4 +++- config/vk_accounts.yml | 10 +++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/app/helpers/vkontakte.rb b/app/helpers/vkontakte.rb index a380b22..7c151d6 100644 --- a/app/helpers/vkontakte.rb +++ b/app/helpers/vkontakte.rb @@ -23,7 +23,9 @@ module Vkontakte private def self.randomBot - @@bot = @@accounts[@@accounts.keys[rand(@@accounts.keys.length - 1)]] + botname = @@accounts.keys[rand(@@accounts.keys.length - 1)] + @@bot = @@accounts[botname] + pp 'Using bot ' << botname end def self.getHtml q diff --git a/config/vk_accounts.yml b/config/vk_accounts.yml index 4ed249d..c735dd7 100644 --- a/config/vk_accounts.yml +++ b/config/vk_accounts.yml @@ -30,11 +30,11 @@ Vivaldi: # Flint remixchk: 5 user_agent: "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16" -Prokofiev: # Daddy - user_id:24538630 - remixsid: 832fae47c8dfc8df66551b8c72927ca26f6ee49f5754b24e9a9a317805c5 - remixchk: 5 - user_agent: "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; WebMoney Advisor; GTB6.3; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)" +# Prokofiev: # Daddy +# user_id:24538630 +# remixsid: 832fae47c8dfc8df66551b8c72927ca26f6ee49f5754b24e9a9a317805c5 +# remixchk: 5 +# user_agent: "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; WebMoney Advisor; GTB6.3; InfoPath.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)" Paganini: # Tom_Orrow user_id: 1554168