[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 583: sizeof(): Parameter must be an array or an object that implements Countable[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 639: sizeof(): Parameter must be an array or an object that implements CountableClan Chatbot - Page 2 - Alliance From Hell

Turias, did you change the way emotes work? Looking through now it seems like they bots are spitting out: "[emote_text]", although that may vary by channel. I'm now trying to make this update work and mostly have it (unless you, for some reason, do a /whois on any of the bots, that's a little weird and I might fix it eventually...), but these emotes are way broken. Looking through the code for tabbed chat I can't see where it would fix these emotes.

I don't know, maybe it would be doable, but I feel like it would make the code a lot more quirky and introduce more weird bugs (that is, make it easier for a false positive or negative, right now you'd need to be saying something kind of silly in order to fuck up other people, like:

would look really weird, but who would paste the bot's name and PID but not in the AFHobo (#1736458) form? (That last form won't trigger anything). Even then that wouldn't fuck up through the bots, only in the same clan.

Long story short, since those don't get replaced with a bot name, could we change it back? I think the <> worked fine.

That looks weird to me (I'd italicize it to replace the brackets). I much prefer the old form, personally.

My main purpose (which has been accomplished) is that the majority of communications show clan of origin. Emotes not showing that (as well as not making the playername clickable) seems fine to me. If people want me to change emotes to something else I could do that. Honestly, I'd kind of like to do:

...Fuck, emotes suck. I can't think of any good way to do it. I'll continue to think about it, and if anyone else can think of anything please let me know.

ETA: Lost, I don't like adding a symbol because it starts to get less readable to people not using the script, and I'm not sure if it accomplishes our goal. Although, I guess it would since there's no other way to put a tilde right after something a bot says, so we'd be back to needing to say:

Yeah, it only fires if the bot's ID and name are both in it. What would be really nice for me is if we could somehow note when the player's name ends. I'd really like to be able to add back the functionality of bolded and linked usernames. Right now I'm going to italicize it, but would really like to add that back.

Quick question, would it be easy to have the bots auto-send stuff back to you when you fuck up and right-click them when the person's not in the system? If it would be at all hard don't bother, but with kbay doing kmailing stuff I'm guessing it might not be.

It wouldn't be that hard at all. It would just take a little time to implement. The main thing to consider is that right now the clan chatbots don't check kmail at all, so there would definitely be a bandwidth increase in doing this. I'd prefer for the code to be written such that the kmail page is not downloaded very often. Right now the bots cycle every five seconds or so looking for new chat messages.

As always, if someone wants to tackle writing this feature I'd be happy to merge it in. Baby is still eating up way too much of my time right now for me to do it myself. I don't even have time to play my turns anymore!

After some experimenting, it turns out that if your message starts with a / (such as /clan, /hardcore, /msg whoever), it terminates at && because that's assumed to be the start of a new message. If you just send a message to the channel you're in, no / is needed and the && goes through (I tested this in an unused clan with two characters). I'm guessing the bots put /clan in front of the messages they're sending. Or there's some other reason for it, which would probably be harder to change.

No need for the bots to /msg each other as they are all run from the same process.

But yeah, thanks for looking into this. The bots indeed prefix all of their chats with /clan. I wanted to make sure the bots never started to broadcast clan chat to /newbie, so I did that. However, I could also just "/channel clan" whenever the bots log in. This isn't a huge priority, but I'll try to do it when I have the chance. Thanks!

For what little it's worth, I run a PSA bot (for mall bargains) in the clan where my other char lives, and since people liked snowballing him and jawbruising him, I just put in a periodic check for any nefarious chat effects... and it hits the guilty party with some toilet paper or a nerf dart in hopes of starting a big fight.

I just assume that people will forget what exactly is it that they need to do if it's not automatic.