3 ms·
Sure I've used IRC. That's a long way from programming against it. I asked the question because I believe there are many professional developers who have a sim
by brudgers 10y ago
Sure I've used IRC. That's a long way from programming against it.
I asked the question because I believe there are many professional developers who have a similar knowledge gap despite having vastly more programming experience than me.
That seems to often be the case with older technologies internet technologies. I mean it's probably easier to point to resources for writing Slack bots than an IRC bot.
- robinmanoli 10y agoWell, I'm not sure what you are really after. I think you can find tutorials for established bot modules, such as eggdrops or how to write an irssi script. The tutorial I made is based on the code provided in the examples. There are some common bot functions there, and explanations, which might be enough to get started with your own. Did you look at my examples which were mentioned in the tutorial? https://github.com/RobinManoli/ircutil/blob/master/examples/get_started_bot.py https://github.com/RobinManoli/ircutil/blob/master/examples/... https://github.com/RobinManoli/ircutil/blob/master/examples/tutorbot.py https://github.com/RobinManoli/ircutil/blob/master/examples/... One point with my module is that you can access IRC as raw text. (See how event.raw is used in get_started_bot.py). If you run this bot, you can observe how IRC looks like in text mode. Already from there you can parse any of those lines of text with Python to get started with your own bot. Then you can use event helpers, (see examples). For example, if you want to respond to a message you use: if event.MSG: ... and to send a message, use: mybot.msg(channel_or_nickname, mymessage)
- brudgers 10y agoThanks. I appreciate it.