This commit is contained in:
Emily Horsman 2021-01-27 05:25:00 +05:30 committed by GitHub
commit b8c0da0b19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,6 @@ from service import slack
LOGGER = logging.getLogger('cookie')
MAX_PINS = 100
MAX_LORE = 30
LORE_FILE = 'lore.json'
CHANNELS = {}
ANGER_MESSAGES = [':anger:', ':angry:', 'glaring @ u']
@ -161,8 +160,6 @@ def process_message(data):
#
def _lore(channel, count):
if count > MAX_LORE:
return [random.choice(ANGER_MESSAGES)]
pins = channel.saved_pins
if not pins:
return None