Improve bots network: when two connected bots are on the same channel, only one answers to the user
This commit is contained in:
parent
f33768a853
commit
b477d5b8b7
3 changed files with 28 additions and 26 deletions
3
hooks.py
3
hooks.py
|
|
@ -19,8 +19,9 @@
|
|||
from response import Response
|
||||
|
||||
class MessagesHook:
|
||||
def __init__(self, context):
|
||||
def __init__(self, context, bot):
|
||||
self.context = context
|
||||
self.bot = bot
|
||||
|
||||
# Store specials hooks
|
||||
self.all_pre = list() # Treated before any parse
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue