making imports fit my style convention, actually importing os in the module that needs it
This commit is contained in:
parent
91e535978f
commit
26d2e0c294
|
@ -14,9 +14,10 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from irclib import irclib
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
from irclib import irclib
|
||||||
|
|
||||||
# Base class used for creating classes that have real functionality.
|
# Base class used for creating classes that have real functionality.
|
||||||
|
|
||||||
class Module(object):
|
class Module(object):
|
||||||
|
|
|
@ -14,10 +14,12 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from Module import Module
|
|
||||||
from irclib import irclib
|
|
||||||
from ConfigParser import NoOptionError
|
from ConfigParser import NoOptionError
|
||||||
|
|
||||||
|
from irclib import irclib
|
||||||
|
|
||||||
|
from Module import Module
|
||||||
|
|
||||||
# Class that adds a countdown item to the bot
|
# Class that adds a countdown item to the bot
|
||||||
|
|
||||||
class Countdown(Module):
|
class Countdown(Module):
|
||||||
|
|
|
@ -14,11 +14,13 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from Module import Module
|
|
||||||
from irclib import irclib
|
|
||||||
import re
|
import re
|
||||||
import random
|
import random
|
||||||
|
|
||||||
|
from irclib import irclib
|
||||||
|
|
||||||
|
from Module import Module
|
||||||
|
|
||||||
# Rolls dice, for RPGs mostly
|
# Rolls dice, for RPGs mostly
|
||||||
|
|
||||||
class Dice(Module):
|
class Dice(Module):
|
||||||
|
|
|
@ -14,9 +14,12 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from Module import Module
|
|
||||||
from irclib import irclib
|
|
||||||
from ConfigParser import NoOptionError
|
from ConfigParser import NoOptionError
|
||||||
|
import os
|
||||||
|
|
||||||
|
from irclib import irclib
|
||||||
|
|
||||||
|
from Module import Module
|
||||||
|
|
||||||
# Returns a random fact/quote/whatever from one or more files
|
# Returns a random fact/quote/whatever from one or more files
|
||||||
|
|
||||||
|
|
|
@ -14,11 +14,13 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from Module import Module
|
|
||||||
from irclib import irclib
|
|
||||||
from urllib2 import urlopen
|
from urllib2 import urlopen
|
||||||
from urllib import urlencode
|
from urllib import urlencode
|
||||||
|
|
||||||
|
from irclib import irclib
|
||||||
|
|
||||||
|
from Module import Module
|
||||||
|
|
||||||
# Class that translates text via Google Translate.
|
# Class that translates text via Google Translate.
|
||||||
#
|
#
|
||||||
# http://code.google.com/apis/ajaxlanguage/documentation/
|
# http://code.google.com/apis/ajaxlanguage/documentation/
|
||||||
|
|
|
@ -15,9 +15,10 @@
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from ConfigParser import NoOptionError
|
from ConfigParser import NoOptionError
|
||||||
from Module import Module
|
|
||||||
from irclib import irclib
|
from irclib import irclib
|
||||||
import traceback
|
|
||||||
|
from Module import Module
|
||||||
|
|
||||||
# All kinds of miscellaneous irc stuff
|
# All kinds of miscellaneous irc stuff
|
||||||
|
|
||||||
|
@ -67,7 +68,6 @@ class IrcAdmin(Module):
|
||||||
if whats[0] == 'rehash' and admin_unlocked:
|
if whats[0] == 'rehash' and admin_unlocked:
|
||||||
self.rehash()
|
self.rehash()
|
||||||
replystr = 'rehashed modules'
|
replystr = 'rehashed modules'
|
||||||
#traceback.print_stack()
|
|
||||||
if replypath is None:
|
if replypath is None:
|
||||||
return replystr
|
return replystr
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -14,12 +14,14 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from Module import Module
|
|
||||||
from irclib import irclib
|
|
||||||
from ConfigParser import NoOptionError
|
from ConfigParser import NoOptionError
|
||||||
|
|
||||||
|
from irclib import irclib
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from dateutil.tz import *
|
from dateutil.tz import *
|
||||||
|
|
||||||
|
from Module import Module
|
||||||
|
|
||||||
# Keeps track of when people say things in public channels, and reports on when
|
# Keeps track of when people say things in public channels, and reports on when
|
||||||
# they last said something.
|
# they last said something.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue