Handle group chats

This commit is contained in:
Luke Murphy 2021-01-15 21:18:20 +01:00
parent 542627cb5e
commit 7dd96a9f30
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 2 additions and 4 deletions

View File

@ -422,10 +422,8 @@ class GlossBot(Bot):
"""
def direct(self, message):
if not self.db:
return self.log.error("No database available")
def group(self, message):
"""Handle glossary commands"""
if "!add" in message.body:
try:
_, body = message.body.split(":!add")