Beispiel #1
0
 async def doc(self, ctx: commands.Context, *, search: str) -> None:
     """Searches for a function with the current name and returns its documentation."""
     await self._search_docs(SendableContext(ctx), search, lambda x: f"https://tweaked.cc/{x['url']}")
Beispiel #2
0
 async def source(self, ctx: commands.Context, *, search: str) -> None:
     """Searches for a function with the current name, and returns a link to its source code."""
     await self._search_docs(SendableContext(ctx), search, lambda x: x["source"])
Beispiel #3
0
 async def faq(self, ctx: commands.Context, *, search):
     """Retrieves FAQs related to given keyword(s)."""
     await _search(SendableContext(ctx), self.faqs, search)