Browse Source

Add support for #nobot

merge-requests/3/head 20170722.2
KemoNine 5 years ago
parent
commit
761e90fad3
  1. 3
      botstreamlisteners.py

3
botstreamlisteners.py

@ -217,7 +217,8 @@ CREATE TABLE IF NOT EXISTS follow_cache (
# Welcome any user who's posted publicly
if visibility == 'public' and federated \
and instance not in self.bot_config['follow']['blacklist']['instances'] \
and username not in self.bot_config['follow']['blacklist']['users']:
and username not in self.bot_config['follow']['blacklist']['users'] \
and '#nobot' not in status['account']['note'].lower():
# Check if username has been seen for welcome
self.cursor.execute(
'select count(1) as found from follow_cache where username = ?',

Loading…
Cancel
Save