irchuu icon indicating copy to clipboard operation
irchuu copied to clipboard

Bot's presence ack

Open roughnecks opened this issue 5 years ago • 9 comments

Hello, is there a way for me to check bot's status (online/offline/relaying) from Telegram? I mean, if I haven't joined IRC but am only sitting on Telegram group, do I have any way to check whether the bot is properly running and relaying?

Thanks

roughnecks avatar Feb 22 '20 19:02 roughnecks

Well, for now, you can type /help or ping it in DM, and if it replies, then it's running. I'll think about making some /status command. It should definitely be possible to tell Telegram users if irchuu is in the IRC channel, but I'm not quite sure about the reverse.

26000 avatar Feb 22 '20 21:02 26000

I'm running the bot at home and sometimes my connection fails so I'd like to be 100% sure it's properly connected to IRC; not sure if querying the bot on Telegram may be sufficient...

roughnecks avatar Feb 22 '20 21:02 roughnecks

Hi, thanks for this, I just upgraded my bot but it keeps saying that: "IRC bot is online and (almost certainly) not in channel." when it actually is in channel.

roughnecks avatar Mar 05 '20 10:03 roughnecks

Oh. What IRC network are you connected to? Maybe I picked a bad way to check whether the bot is in channel (I'm not aware of any other way though, so if I can't get this to work, I'll only be able to report if the bot is online).

26000 avatar Mar 05 '20 10:03 26000

I'm on freenode.

roughnecks avatar Mar 05 '20 11:03 roughnecks

Thanks! Tested it on Freenode, turns out their servers send the channel name and a space after it, which is why IRChuu thought it's not the channel it should be on. I fixed it in 5218ad4a068def50aefb0b54f2bf49449da35887. Also now it won't say it's not on channel if it didn't receive a reply from server in two seconds (default, configurable as statustimeout in IRC config section), instead saying it was unable to find out.

26000 avatar Mar 05 '20 11:03 26000

Sorry to bother you once again, but my bot is still reporting wrong info:

IRC bot is online and (almost certainly) not in channel.

I didn't change a bit in my config, still connected to freenode.

roughnecks avatar Mar 24 '20 14:03 roughnecks

Did it start happening after it's been online for a while or does it happen after each restart?

26000 avatar Apr 10 '20 12:04 26000

Not sure but I launched the bot at 11:30 this morning (3 and half hours passed) and I just issued the /status command with the following result:

IRC bot is online and (almost certainly) not in channel.

roughnecks avatar Apr 10 '20 13:04 roughnecks