Skip to content

Commit 0508e7b

Browse files
authored
Merge pull request #2376 from sopel-irc/xkcd-use-ddg
xkcd: switch to DDG for keyword lookup
2 parents 413e10b + 467f794 commit 0508e7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sopel/modules/xkcd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import requests
1616

1717
from sopel import plugin
18-
from sopel.modules.search import bing_search
18+
from sopel.modules.search import duck_search
1919

2020
PLUGIN_OUTPUT_PREFIX = '[xkcd] '
2121

@@ -45,7 +45,7 @@ def get_info(number=None):
4545

4646

4747
def web_search(query):
48-
url = bing_search(query + sites_query)
48+
url = duck_search(query + sites_query)
4949
if not url:
5050
return None
5151
match = re.match(r'(?:https?://)?(?:m\.)?xkcd\.com/(\d+)/?', url)

0 commit comments

Comments
 (0)