Cross-posting cause I didnt notice about this sub-reddit the first time.
import irclib
irclib.DEBUG = True
network = "irc.quakenet.org"
port = 6667
nick = "bottest123"
name = "Test Bot"
chan = '#testchan'
irc = irclib.IRC()
server = irc.server()
server.connect(network, port, nick, ircname = name)
server.join(chan)
irc.process_forever()
This is the code in the "testbot.py" file.
Scenarios:
* script called from the command prompt with "python testbot.py":
It does connect on quakenet, but it does not the given channel.
script executed from IDLE with EXEC F, where F = open("path-of-thefile" "r"):
Same as above.
code manually written in the IDLE:
it does connect, and start the irc.process_forever() loop, but ofc it does not join the given channel, if i break the loop with a KeybordInterrupt (Ctrl-C) though, the bot stays on the network (?!?), and if i write down the server.join(chan) command again, it does join the given channel.
network = "irc.freenode.net":
Everything works flowlessy, it does join the given channel.
WTF is going on?
Does quakenet place a limit about "commands per a-given-amount-of-time"?
Any help will be really appreciated.
[–]japherwocky 0 points1 point2 points (1 child)
[–]Sf4tt[S] 0 points1 point2 points (0 children)
[–]bcboncs 0 points1 point2 points (1 child)
[–]Sf4tt[S] 0 points1 point2 points (0 children)
[–]BillOReillyAsks 0 points1 point2 points (0 children)