Digital Paint Discussion Board

Development => General Development => Topic started by: mRokita on January 08, 2014, 04:23:37 PM

Title: IRC Bot in Python - strange problem
Post by: mRokita on January 08, 2014, 04:23:37 PM
Hi!
I wrote an IRC bot in Python and i have a strange problem.
When i have run this bot on my server first time there wasnt any problem.
But when I run it on my server now, it has a very long respond time (about 1-2 mins, no time.sleep or another commands used).
I have checked Heniek my home computer, and it works fast, but maybe because of that it was running on it only a few times.
source code: http://83.3.32.52/IRC_Heniek/bot.py (http://83.3.32.52/IRC_Heniek/bot.py)
console log: http://83.3.32.52/IRC_Heniek/heniek-log.txt (http://83.3.32.52/IRC_Heniek/heniek-log.txt)

hTml

PS
Ik, ik, some of defined functions are not required in this bot, but its very inprogress, and ill need them in newest versions of this bot.


Title: Re: IRC Bot in Python - strange problem
Post by: not_payl_obviously on January 08, 2014, 05:27:01 PM
Could be that your server is slowing down this script after while. But we aren't you, so how could we know.

Btw. great way of detecting PING command, oh what if I say "PING"...
Title: Re: IRC Bot in Python - strange problem
Post by: mRokita on January 08, 2014, 05:43:19 PM
ping returns faster than 1sec :/
and i see the irc join msg in logs before the bots answer.
Title: Re: IRC Bot in Python - strange problem
Post by: Clipz on January 08, 2014, 05:52:34 PM
So you are the guy who has this bot. Remove this crap from #paintball. It's stupid and serves no purpose.
Title: Re: IRC Bot in Python - strange problem
Post by: mRokita on January 08, 2014, 06:45:28 PM
Clipz, I said its a early inprogress bot, you don't know what's the sense of this bot but you will see it when ill finish it.
Thanks for helping me to solve this problem.
Title: Re: IRC Bot in Python - strange problem
Post by: Clipz on January 08, 2014, 07:01:40 PM
Take off the greeting please, it's just annoying. I'm not home to look at the script once it's done have it idle until then please turn it off.
Title: Re: IRC Bot in Python - strange problem
Post by: Union on October 06, 2014, 10:01:21 AM
Does this game use C, or Python?
Title: Re: IRC Bot in Python - strange problem
Post by: xrichardx on October 06, 2014, 01:57:55 PM
The game is written in C, you can view most of the sourcecode here: http://paintball2.cvs.sourceforge.net/viewvc/paintball2/paintball2/

Please Union, you are new here, and you post a lot of stuff and most of the post contain stuff that has already been said. Just read the whole thread before answering. This thread here clearly is about a Python bot for IRC, not about the game.
Title: Re: IRC Bot in Python - strange problem
Post by: Union on October 06, 2014, 09:40:21 PM
The game is written in C, you can view most of the sourcecode here: http://paintball2.cvs.sourceforge.net/viewvc/paintball2/paintball2/

Please Union, you are new here, and you post a lot of stuff and most of the post contain stuff that has already been said. Just read the whole thread before answering. This thread here clearly is about a Python bot for IRC, not about the game.
Thank you for your help.
Title: Re: IRC Bot in Python - strange problem
Post by: FusSioN on October 10, 2014, 06:25:56 AM
Heneik <3

i didn't know it was still there.
Title: Re: IRC Bot in Python - strange problem
Post by: mRokita on October 10, 2014, 04:49:49 PM
Heneik <3

i didn't know it was still there.
He's still alive :)
hTmlsBot contains a part of the Heniek's source code :)