I officially hate the random question. Right now, the sky is Dark. Not blue. 
Code:
import random, db, irc
class other:
ircHandle = irc.irc()
def __init__(self):
self.dbHandle = db.db()
def newLine(self):
self.ircHandle.ircTest()
print ""
def makeNewNick(self):
myNewNick = "guest" + str(random.randint(1,1024))
return myNewNick
That's the code. I redid the import thing according to the link you gave me and it still doesn't work.
Then here is the error
Code:
Traceback (most recent call last):
File "ngtwlkr.py", line 1, in <module>
from Resources import *
File "L:\Documents\Site\Bot\Resources\__init__.py", line 2, in <module>
from Resources import irc
File "L:\Documents\Site\Bot\Resources\irc.py", line 1, in <module>
import socket, sys, string, db, other
File "L:\Documents\Site\Bot\Resources\other.py", line 3, in <module>
class other:
File "L:\Documents\Site\Bot\Resources\other.py", line 4, in other
ircHandle = irc.irc()
AttributeError: 'module' object has no attribute 'irc'
Edit: Managed to fix it and this is my code;
Code:
import random, db
class other:
def __init__(self):
self.dbHandle = db.db()
def newLine(self):
import irc
self.ircHandle = irc.irc()
print ""
def makeNewNick(self):
myNewNick = "guest" + str(random.randint(1,1024))
return myNewNick
But, the thing is what if I add more things that need the irc? Would I have to import it time after time? O-o