Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
maubot
disruptor
Commits
c28aef3f
Commit
c28aef3f
authored
Jun 16, 2019
by
Tulir Asokan
🐈
Browse files
Add support for encrypted rooms
parent
8f9506b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
disruptor.py
View file @
c28aef3f
...
...
@@ -123,6 +123,7 @@ class DisruptorBot(Plugin):
self
.
log
.
info
(
f
"
{
n
}
posts cached from
{
subreddit
}
"
)
@
event
.
on
(
EventType
.
ROOM_MESSAGE
)
@
event
.
on
(
EventType
.
ROOM_ENCRYPTED
)
async
def
monologue_detector
(
self
,
evt
:
MessageEvent
)
->
None
:
monologue
=
self
.
monologue_size
.
setdefault
(
evt
.
room_id
,
MonologueInfo
())
if
monologue
.
is_outdated
(
self
.
config
[
"max_monologue_delay"
]):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment