If you're new here, you may want to subscribe to my RSS feed. This would mean that you'll never miss a post! You can also subscribe via email if you look in the sidebar!
Thanks for visiting!
Sean
Well just doing a google search on “werewolf bot irc” I come up as the 2nd result, right after the buggy java version! So I figured I better make a post on it for people who come here looking for one. At the moment I am using a PHP based bot. [Probably not the best but it works] I’m going to change over to an EggBot version soon, as that’d be better but while you are all waiting for me to figure out how to do that the version I am using now is based on the PHP:IRC framework. You can download the framework here, and the mod for the werewolf mod here. [go for version 2.2 of the mod]
Really simple to setup, extract the framework, extract the bot.. shove the bot folder into the modules folder. Download PHP 5 the PHP 5.2.3 zip package..Extract it to C:/Php5/ [this just makes things easier] Move the Framework package to C://, rename it PHPirc. [Again, just simplifing things..]
Follow the readme on changing the php.ini parts of the files.. [the readme in the PHPirc folder]
Open your defines.php page 2nd or 3rd line
define(’OS’, ‘os’); - change it to Windows or Linux..
Open bot.conf, set your bots nickname and password and what not!
Open functions.conf, scroll to the bottom, replace the includes with this:
include typedefs.conf;include modules/default/priv_mod.conf
;include modules/default/dcc_mod.conf
include modules/werewolf/werewolf.conf
;include modules/bad_words/bad_words.conf
;include modules/peak_mod/peak_mod.conf
;include modules/seen/seen_mod.conf
;include modules/news/news_mod.conf
;include modules/imdb/imdb_mod.conf
;include modules/quotes_ini/quote_mod.conf
;include modules/quotes_sql/quote_mod.conf
;include modules/httpd/httpd_mod.conf
;include modules/fileserver/fileserver.conf
;include modules/bash/bash_mod.conf
Go, Start - Run,
Type in “cmd” [without the “’s]
a DOS window will open do the following commands:
cd C:/PhpIRCC:/php5/php.exe bot.php bot.conf
And presto! Your bot will connect to the network and start running! make sure it has auto-op in the channel you are using it in!
Any bugs? Drop me a comment, i’ll try my best to help you!
Digg it! 
Hello,
The bot doesnt give voice status in a channel.
Do you know why?
He has OP status himself.
When I say !start he does his work very good. Only the dead players can still talk. Becaus the channel doenst get voice status when the game starts.
Hey,
What network are you on?
The bot should enable m mode on the channel, is he doing that?
No,
I’m on a dutch server
irc.chattersweb.nl
I let him join a empty room so he has all the nececary rights.
Try set m mode in the room yourself, I’d try but for some reason I’m banned from the server..
Emailed them off but the command you need is /mode #channelname m
I’m now using the java bot.
The java bot sets the right parameters.
It’s not easy to set room parameters when I am away and the bot is running. =)
The php bot is not working right, and i don’t know why.
The java bot has major issues! If someone leaves a game it just hangs. Also you can’t make custom games, once I get unbanned from the network, I’ve emailed them off. I will have a look at it for you!
The PHP one is certainly better!
Hmmm, yes it looks better.
The php version I mean.
But he don’t give voice and turn the channel moderated.
It’s not a good bot when I need to set that sort of options by myself.
Hmm, The java bot works correctly, so mabey a bug in the werewolf gamescript?
Or do you have a server where the bot works correctley?
The PHP version is much better, the bot worked perfectly on Jaundies but I don’t run it anymore, don’t have the time!
irc.jaundies.com Try it on that server. I never had to set options myself!
I have tried the bot there, the same problems.
It’s very strange, and I let another PHP programmer try it as wel and he had the same problem as me. The script look’s ok so that is the strange part of it.
Hi there! I really appreciate your blog on the PHP Werewolf bot.
I tried to set it up less than successfully, though. I followed all the instructions to the letter. This is the error I get:
Error: Undefined type, ‘nick’ on line 4 of function file: modules/werewolf/werewolf.conf
Successfully loaded 31 functions into memory.
Fatal error: Call to undefined function socket_create in C:\PHPirc\socket.php on line 411
Oohhhkay what did I do wrong here?
I got it solved.
Nevermind.
Thanks for the links and everything. Cool stuff! Cool bot!
I have the same error as Davie there but I’ll be damned if I know why
Error: Undefined type, ‘nick’ on line 4 of function file: modules/werewolf/werewolf.conf
Successfully loaded 31 functions into memory.
Fatal error: Call to undefined function socket_create() in C:\PhpIRC\socket.php
on line 411
got the ‘nick’ issue solved, cant get the socket_create one though