geirawsm / sausage_bot

Another Discord-bot
1 stars 0 forks source link

Bug in adding filter to rss #47

Closed geirawsm closed 10 months ago

geirawsm commented 1 year ago

!rss filter [feed_name] add deny [keyword] gives error:

  File "sausage_bot/cogs/rss.py", line 261, in rss_filter
    if filter_in not in feeds[feed_name][eval(f'filter{allow_deny}')]:
                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<string>", line 1, in <module>
NameError: name 'filterdeny' is not defined
geirawsm commented 10 months ago

This is working again after revising rss in 58603d372aaf8f29c38026887714b33c2d6a67b3