User talk:Shane

Discussion page of User:Shane

Latest comment: 15 years ago by Shane in topic Vote bot
Message to all
Please note: This user has a photographic memory. Anything this user sees is quickly memorized.


Vote bot

Are you actively developing the vote bot? If not, I'd like to write it ;) --Catrope(Talk to me or e-mail me) 14:08, 9 May 2008 (UTC)

neg. Go for it. I have wikipedia version, but havn't really looked at it in a while. Shane (talk) 20:52, 9 May 2008 (UTC)Reply[reply]
OK, I've finished it and it's running fine on my wiki. It does require MW 1.13, though. --Catrope(Talk to me or e-mail me) 12:12, 13 May 2008 (UTC)
That could be a problem. :D Gotta link? Shane (talk) 12:42, 13 May 2008 (UTC)Reply[reply]
To what, the bot or 1.13? Currently, 1.13 hasn't been released yet, there's only 1.13alpha that you can download from SVN. I'll upload the bot code later, after I've documented it. --Catrope(Talk to me or e-mail me) 13:32, 13 May 2008 (UTC)
No no. :p To your wiki to where you tested it. :D Shane (talk) 14:25, 13 May 2008 (UTC)Reply[reply]
I have it running on localhost, so I can't really show you. Maybe you could set up the Hangar Bay again (it's still out) and have it run 1.13alpha? I'll be happy to do the SVN checkout if you feel awkward about that. --Catrope(Talk to me or e-mail me) 15:37, 13 May 2008 (UTC)
domain back up an working. You should be able to access the hb folder with your access. I think the LocalSettings.php file that is on there now has the current username/password you will need for updating to 1.13. Shane (talk) 15:40, 13 May 2008 (UTC)Reply[reply]
Thanks. However, I don't have write access to /home/bsgwiki/bots/ either, so I can't add VoteBot there. --Catrope(Talk to me or e-mail me) 18:33, 14 May 2008 (UTC)
Do'h! :P Will add. Shane (talk) 20:11, 14 May 2008 (UTC)Reply[reply]

OK, more trouble. The bot is up there and I can run it from my machine, but since I guess we'll wanna run it on apollo as a cron job, I'll need you to work around some stupid PHP bug and add the following lines to /etc/hosts:

74.53.78.34 hb.battlestarwiki.org
74.53.78.34 en.battlestarwiki.org

etc. for every subdomain we want VoteBot to run on. --Catrope(Talk to me or e-mail me) 20:57, 14 May 2008 (UTC)

Werid. Let me check it out before I do anything with the hosts files. Shane (talk) 21:11, 14 May 2008 (UTC)Reply[reply]
Gota ya. Adding to our hosts file. HB and EN for now. Shane (talk) 21:16, 14 May 2008 (UTC)Reply[reply]
Double werid. I added to our hosts file those lines, and still no go on the command execution. Try to remove the port. Shane (talk) 21:22, 14 May 2008 (UTC)Reply[reply]
I added the 775 flags to the file so we cna work on it. Not the /etc/hosts file. Gtalk ? Shane (talk) 21:32, 14 May 2008 (UTC)Reply[reply]
Got it working. :) Shane (talk) 21:48, 14 May 2008 (UTC)Reply[reply]
[root@apollo VoteBot]# php VoteBot.php --run --config VoteBot.config.hb.php 
VoteBot 0.1
Logging in as VoteBot... http://hb.battlestarwiki.org/w/api.php
Error: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /w/api.php was not found on this server.</p>
<hr>
<address>Apache/2.2.4 (Unix) Server at hb.battlestarwiki.org Port 80</address>
</body></html>

[root@apollo VoteBot]# 

Shane (talk) 21:59, 14 May 2008 (UTC)Reply[reply]

Sorry, a typo must've happened somewhere. The last octet should be 35, not 34. --Catrope(Talk to me or e-mail me) 12:31, 15 May 2008 (UTC)
?? What? Shane (talk) 13:08, 15 May 2008 (UTC)Reply[reply]

Reminder for Shane...

http://en.wikipedia.org/wiki/Wikipedia:Upload Shane (talk) 14:46, 13 May 2008 (UTC)Reply[reply]