开发者

twisted IRCClient with a listentcp

开发者 https://www.devze.com 2023-01-16 15:36 出处:网络
I\'m trying to make a simple IRC bot that also listens to another port for incoming data and relays that to an IRC channel.. I\'m using the following as sample code for my bot

I'm trying to make a simple IRC bot that also listens to another port for incoming data and relays that to an IRC channel.. I'm using the following as sample code for my bot

http://www.eflorenzano.com/blog/post/writing-markov-chain-irc-bot-twisted-and-python/

I'm getting stuck how I also add a listenTCP to be able to talk to the bot with the reactor. I can make it listen but not sure how to send it to the bot so 开发者_如何转开发the bot can msg the channel


This is a variation of a popular FAQ, answered here.

0

精彩评论

暂无评论...
验证码 换一张
取 消