@@ -103,7 +103,8 @@ class Dictionary(Command): | |||||
if body: | if body: | ||||
definition = self.parse_body(body[0]) | definition = self.parse_body(body[0]) | ||||
if definition: | if definition: | ||||
defs.append("\x02{0}\x0F {1}".format(part, definition)) | |||||
msg = u"\x02{0}\x0F {1}" | |||||
defs.append(msg.format(part, definition)) | |||||
return "; ".join(defs) | return "; ".join(defs) | ||||
@@ -26,9 +26,9 @@ import oursql | |||||
from earwigbot.commands import Command | from earwigbot.commands import Command | ||||
class Replag(Command): | |||||
class Lag(Command): | |||||
"""Return the replag for a specific database on the Toolserver.""" | """Return the replag for a specific database on the Toolserver.""" | ||||
name = "replag" | |||||
name = "lag" | |||||
def setup(self): | def setup(self): | ||||
try: | try: |
@@ -26,9 +26,20 @@ import logging | |||||
import logging.handlers | import logging.handlers | ||||
from os import mkdir, path | from os import mkdir, path | ||||
from Crypto.Cipher import Blowfish | |||||
import bcrypt | |||||
import yaml | |||||
try: | |||||
from Crypto.Cipher import Blowfish | |||||
except ImportError: | |||||
Blowfish = None | |||||
try: | |||||
import bcrypt | |||||
except ImportError: | |||||
bcrypt = None | |||||
try: | |||||
import yaml | |||||
except ImportError: | |||||
yaml = None | |||||
from earwigbot.exceptions import NoConfigError | from earwigbot.exceptions import NoConfigError | ||||