🏡 index : ~doyle/dave.git

author Jordan Doyle <jordan@doyle.wf> 2017-07-22 20:10:33.0 +01:00:00
committer Jordan Doyle <jordan@doyle.wf> 2017-07-22 20:10:33.0 +01:00:00
commit
d952805a8d732c45ede8ac94b6bc147d9fe24733 [patch]
tree
f3cbaad3ff732b683a379dfec064a20fe761acb2
parent
04a7ae041cd66fc8ac063a2a223b0794115312f6
download
d952805a8d732c45ede8ac94b6bc147d9fe24733.tar.gz

match speedtest images too



Diff

 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):