super3 / IRC-Bot

A very little basic IRCBot that will get improved over the next time.
http://www.wildphp.com
102 stars 47 forks source link

Couple of questions. #35

Open Skullmonkey opened 10 years ago

Skullmonkey commented 10 years ago

I have adapted the bot to work with Twitch.tv and has served very well for my needs. Basically, I just added a password to the config file and had it send before the NICK.

On to my questions: 1: One thing I would like to do is create a check for new followers and subscribers (once the person I made it for finally gets his button). I have it made right now where it works via command but would like to make it automatically check every so often. Is there any way to achieve this?

I just got the idea to check any time someone says something and then put a spam timer-ish type deal... I would like to use a more efficient way though.

2: I am getting a lot of blank log lines from the output.

28.01.2014 - 17:08:58     [ LOG ]
28.01.2014 - 17:09:58     [ LOG ]
28.01.2014 - 17:10:58     [ LOG ]
28.01.2014 - 17:11:09     [ LOG ]       PING tmi.twitch.tv
28.01.2014 - 17:11:09     [ COMMAND ]   PONG tmi.twitch.tv
28.01.2014 - 17:12:09     [ LOG ]
28.01.2014 - 17:13:09     [ LOG ]
28.01.2014 - 17:14:09     [ LOG ]
28.01.2014 - 17:15:09     [ LOG ]
28.01.2014 - 17:15:50     [ LOG ]       PING tmi.twitch.tv
28.01.2014 - 17:15:50     [ COMMAND ]   PONG tmi.twitch.tv
28.01.2014 - 17:16:50     [ LOG ]
28.01.2014 - 17:17:50     [ LOG ]
28.01.2014 - 17:18:50     [ LOG ]
28.01.2014 - 17:19:50     [ LOG ]
28.01.2014 - 17:20:40     [ LOG ]       PING tmi.twitch.tv
28.01.2014 - 17:20:40     [ COMMAND ]   PONG tmi.twitch.tv

Is there any way to fix that? Or better yet, how do I disable logging? I am running it via command window.

3: When my internet decides to crap out, I keep getting very fast log spams. This, in turn, creates a VERY large (gigabytes worth) log files. I would like to see if the bot can disconnect and reconnect after a few minutes if possible.

super3 commented 10 years ago

Our bot is unmaintained and very broken. I would suggest using someone else's bot.

Skullmonkey commented 10 years ago

This is the best one I have found for my needs. Plus, I really don't want to start from square one for a 3rd time :(

super3 commented 10 years ago

When do you need this by? I was planning on contacting all the forks, and getting everyone working on a few version.

Skullmonkey commented 10 years ago

Probably within 2 weeks or so if possible. I would like to see this project come alive again!

ElvenSpellmaker commented 10 years ago

My fork is so far removed from everyone else's since I decided to continue work in everyone's absence.

Mine is multi-processed (and the coding style changed somewhat) now connecting via a UNIX socket using socket_select. This stops a hogging plug-in from making the bot PING out as the front-end deals with the PINGs.

I am planning a re-write of my version of the bot at some point, but when I'm not sure.

super3 commented 10 years ago

Ok I sent mail to @pogosheep. My plan it to takeover the repo, and give you and the other forks commit access. You can then do a hard merge to your version(or whichever the best fork is), and we can start getting this back into active development.

DanielSiepmann commented 10 years ago

I started the transaction. Nice to hear it's still in use. Thanks for keeping things running and further.

Skullmonkey commented 10 years ago

It's the only one that I have found in PHP that lets me add/adapt to the way I would like. I use both commands and listeners. I've had to adapt a couple of things like adding a spam timer, incorporating databases, and such but those were things I could do with my limited knowledge of PHP. I kind of want to make one with an interface that I can have an interface with but that would have to happen in another language that I don't know. That way, I can also distribute it to the streamer that I run the bot for. But, that's a different subject entirely.

super3 commented 10 years ago

Ok added you to the commit access @ElvenSpellmaker, could you do a hard push to the repo with your codebase which I assume is much better.

@Skullmonkey Feel like merging some of your changes into our new project?

Skullmonkey commented 10 years ago

I will have to clean up my code a bunch before I commit it. If we are going to a new base, I will wait and then build upon that.

Skullmonkey commented 10 years ago

Just popping in to say hi! We should start working on this again :D

cutzenfriend commented 10 years ago

Yes please!! :(