Handle group chats
This commit is contained in:
parent
542627cb5e
commit
7dd96a9f30
@ -422,10 +422,8 @@ class GlossBot(Bot):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def direct(self, message):
|
def group(self, message):
|
||||||
if not self.db:
|
"""Handle glossary commands"""
|
||||||
return self.log.error("No database available")
|
|
||||||
|
|
||||||
if "!add" in message.body:
|
if "!add" in message.body:
|
||||||
try:
|
try:
|
||||||
_, body = message.body.split(":!add")
|
_, body = message.body.split(":!add")
|
||||||
|
Reference in New Issue
Block a user