bypass deleted messages (or rather messages without content)
This commit is contained in:
parent
10209348b3
commit
eef6224007
1 changed files with 20 additions and 19 deletions
|
@ -129,6 +129,7 @@ class ChannelMonitor(threading.Thread):
|
||||||
if msg.source.id == app.config['PNUTCLIENT_ID']:
|
if msg.source.id == app.config['PNUTCLIENT_ID']:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if 'content' in msg:
|
||||||
user = self.generate_matrix_id(msg.user.username)
|
user = self.generate_matrix_id(msg.user.username)
|
||||||
text = msg.content.text + "\n"
|
text = msg.content.text + "\n"
|
||||||
# dt = datetime.datetime.strptime(msg.created_at, "%Y-%m-%dT%H:%M:%SZ")
|
# dt = datetime.datetime.strptime(msg.created_at, "%Y-%m-%dT%H:%M:%SZ")
|
||||||
|
|
Loading…
Reference in a new issue