add wiki stuff

This commit is contained in:
2025-05-22 17:09:48 -05:00
parent 3945eb6763
commit ffd642fd2a
3 changed files with 16 additions and 1 deletions

View File

@ -1 +1,9 @@
import wikipedia
async def wikisum(search_term):
try:
summary = wikipedia.summary(search_term)
return summary
except wikipedia.exceptions.DisambiguationError as e:
return e