Pārlūkot izejas kodu

Forgot to subscribe to JOIN hooks for welcomer.

pull/10/merge
Ben Kurtovic pirms 9 gadiem
vecāks
revīzija
ccfb841d6c
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. +3
    -1
      commands/welcome.py

+ 3
- 1
commands/welcome.py Parādīt failu

@@ -29,6 +29,7 @@ class Welcome(Command):
"""Welcome people who enter certain channels."""
name = "welcome"
commands = ["welcome", "greet"]
hooks = ["join", "msg"]

def setup(self):
try:
@@ -99,7 +100,8 @@ class Welcome(Command):
self.reply(data, msg.format(data.arg[1]))
else:
self.disabled.append(data.arg[1])
msg = "Disabled welcoming in \x02{0}\x0F."
msg = ("Disabled welcoming in \x02{0}\x0F. Re-enable with "
"\x0306!welcome enable {0}\x0F.")
self.reply(data, msg.format(data.arg[1]))
elif data.arg[0] == "enable":
if len(data.arg) < 2:


Notiek ielāde…
Atcelt
Saglabāt