Compare commits

...

2 Commits

Author SHA1 Message Date
3c1c95aa3a bugfix youtube url titles 2020-08-21 01:03:00 -04:00
5d6bf5e40f bugfix lazy reminds being announced one at a time 2020-08-21 01:00:06 -04:00
2 changed files with 3 additions and 3 deletions

View File

@ -169,6 +169,6 @@ def announce_lazy_reminder(bot, remindee, reminder, delta=None):
@module.hook(True)
def lazy_remind(bot, trigger):
"""Lazy reminds only activate when the person speaks."""
for remind in bot.memory['lazy_remind'].get(trigger.nick, []):
for remind in list(bot.memory['lazy_remind'].get(trigger.nick, [])):
bot.msg(remind)
bot.memory['lazy_remind'][trigger.nick].remove(remind)

View File

@ -30,8 +30,8 @@ def get_puush_fname(bot, url):
bot.msg(f"[ \x0310puu.sh \x03] - \x0304{fname}")
@url_callback("youtube.com/")
@url_callback("youtu.be/")
@url_callback("youtube.com/watch")
@url_callback("youtu.be/watch")
def youtube_title(bot, url):
"""
Retrieve the title of the YouTube video and display it.