Explorar el Código

data.command, not self.command!

tags/v0.1^2
Ben Kurtovic hace 12 años
padre
commit
ad0dd972cb
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      earwigbot/commands/lag.py

+ 2
- 2
earwigbot/commands/lag.py Ver fichero

@@ -32,10 +32,10 @@ class Lag(Command):
site = self.get_site(data)
if not site:
return
if self.command == "replag":
if data.command == "replag":
base = "\x0302{0}\x0F: {1}."
msg = base.format(site.name, self.get_replag(site))
elif self.command == "maxlag":
elif data.command == "maxlag":
base = "\x0302{0}\x0F: {1}."
msg = base.format(site.name, self.get_maxlag(site).capitalize())
else:


Cargando…
Cancelar
Guardar