From d952805a8d732c45ede8ac94b6bc147d9fe24733 Mon Sep 17 00:00:00 2001 From: Jordan Doyle Date: Sat, 22 Jul 2017 20:10:33 +0100 Subject: [PATCH] match speedtest images too --- dave/modules/speedtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dave/modules/speedtest.py b/dave/modules/speedtest.py index aede9a8..180a059 100644 --- a/dave/modules/speedtest.py +++ a/dave/modules/speedtest.py @@ -1,9 +1,9 @@ from requests import get from bs4 import BeautifulSoup import dave.module from twisted.words.protocols.irc import assembleFormattedText, attributes as A -@dave.module.match(r'https?://(?:www\.|beta\.)?speedtest\.net/(?:my-)?result/([0-9]+)') +@dave.module.match(r'https?://(?:www\.|beta\.)?speedtest\.net/(?:my-)?result/([0-9]+)(?:.png)?') @dave.module.priority(dave.module.Priority.HIGHEST) @dave.module.dont_always_run_if_run() def speedtest(bot, args, sender, source): -- rgit 0.1.3