Reputation: 133
So I've got the beginnings of a pretty basic IRC bot, using Twisted's IRC client:
How would I go about hooking into the bot/factory/reactor so I could control the bot via the command line?
So when the bot is ran via CLI, it starts up as usual but drops you into a wee custom interactive prompt. I think this CLI/message loop would have to be where reactor.run() is though.. and I'm not sure how that would all work.
Any suggestions?
Upvotes: 2
Views: 317
Reputation: 476
I think you just want to use the twisted.internet.stdio.StandardIO.
Look at the examples:
Upvotes: 1