aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/wikipedia.py (follow)
Commit message (Collapse)AuthorAgeLines
* Move practical functions into utilities folderGravatar Janine vN2021-09-05-100/+0
| | | | | | Separates out the useful/practical seasonal bot features from the evergreen folder into a "utilities" folder. Adjusts the paths to resources to reflect the folder move.
* Removed unecessary annotations.Gravatar Xithrius2021-09-01-2/+1
|
* Fix type annotationsGravatar decorator-factory2021-08-31-2/+2
|
* Improve overall code transparency in the Wikipedia CogGravatar D0rs4n2021-08-20-3/+1
| | | Co-authored-by: Bluenix <[email protected]>
* Remove unnecessary variables from the Wikipedia cogGravatar D0rs4n2021-08-20-4/+4
|
* Adjust code transparency in the Wikipedia CogGravatar D0rs4n2021-08-20-2/+1
| | | Co-authored-by: Bluenix <[email protected]>
* Improve code transparency in the Wikipedia CogGravatar D0rs4n2021-08-17-1/+0
| | | Co-authored-by: Rohan Reddy Alleti <[email protected]>
* Improve code consistency and spacing in the Wikipedia CogGravatar D0rs4n2021-08-17-14/+13
|
* Remove duplicated code, improve consitency in Wikipedia Cog, and error_handlerGravatar D0rs4n2021-08-08-22/+2
|
* Improve code consitency in Wikipedia Cog,Exceptions, and Error handlerGravatar D0rs4n2021-08-08-9/+6
|
* Resolve merge conflictGravatar D0rs4n2021-08-08-4/+33
|\
| * Improve code consistency in Movie, Wikipedia and Hactoberstats CogsGravatar D0rs4n2021-08-07-1/+1
| |
| * Update the Wikipedia Cog to use aiohttp get paramsGravatar D0rs4n2021-08-07-4/+13
| |
* | Refactor wiki_request, add External API related error,-handlerGravatar D0rs4n2021-08-02-36/+31
| | | | | | | | | | - Refactor wiki_request in the Wikipedia Cog, remove unnecessary else statements. - Add ExternalAPIError, and a handler for this Exception into error_handler
* | Handle Wikipedia API errors and warnings in the Wikipedia CogGravatar D0rs4n2021-08-02-22/+33
|/ | | | - Add an additional check to handle errors and warnings coming from the side of the Wikipedia API, as the response code sent by the Wikipedia API remains 200 even if there is an error.
* chore: Make all aliases in commands tuplesGravatar ToxicKidz2021-05-15-1/+1
|
* chore: Prefer double quotes over single quotesGravatar ToxicKidz2021-05-04-5/+5
|
* chore(evergreen): format each cog load docstring the same wayGravatar vcokltfre2021-04-19-1/+1
|
* Don't use enums for wikipedia error messages, use brackets instead of '\' ↵Gravatar Shivansh-0072021-02-25-27/+22
| | | | for long variable values, pass in ctx.channel instead of the full ctx
* Add log.info() statement if the wikipedia api request status code is not 200Gravatar Shivansh-0072021-02-23-0/+1
|
* Improve wikipedia command to send a snippet of wikipedia article and use ↵Gravatar Shivansh-0072021-02-22-92/+76
| | | | pagination instead of asking user for input
* Changed Wikipedia to WikipediaSearchGravatar Anubhav2020-09-22-2/+2
|
* Changed WikipediaCog-> WikipediaGravatar Anubhav2020-09-22-2/+2
| | | Change this becuase this causing issue in help command
* changed List[str]->Optional[List[str]]Gravatar Anubhav16032020-09-22-2/+2
|
* handled exceptiom of ContentTypeError at search_wikipediaGravatar Anubhav16032020-09-22-9/+12
|
* corrected value error msgGravatar Anubhav16032020-09-21-1/+1
|
* Update bot/exts/evergreen/wikipedia.pyGravatar Anubhav2020-09-21-3/+3
| | | Co-authored-by: Thomas Petersson <[email protected]>
* removed s from titleGravatar Anubhav16032020-09-21-1/+1
|
* removed t.optionalGravatar Anubhav16032020-09-21-2/+2
|
* changed List[str]->Optional[List[str]]Gravatar Anubhav16032020-09-21-2/+2
|
* removed extra .Gravatar Anubhav2020-09-21-1/+1
| | | Co-authored-by: Thomas Petersson <[email protected]>
* changed page ->pagesGravatar Anubhav2020-09-21-5/+7
| | | Co-authored-by: Thomas Petersson <[email protected]>
* changing and corrected lintingGravatar Anubhav16032020-09-21-4/+3
|
* Merge branch 'master' of github.com:Anubhav1603/seasonalbotGravatar Anubhav16032020-09-21-7/+8
|\
| * changed f_wiki_urls -> f_wiki_urlGravatar Anubhav2020-09-21-4/+3
| | | | | | Co-authored-by: Thomas Petersson <[email protected]>
| * made code more readableGravatar Anubhav2020-09-21-0/+2
| | | | | | Co-authored-by: Thomas Petersson <[email protected]>
| * Update bot/exts/evergreen/wikipedia.pyGravatar Anubhav2020-09-21-1/+1
| | | | | | Co-authored-by: Thomas Petersson <[email protected]>
| * Removed the title_no_underscore list with titlesGravatar Anubhav2020-09-21-1/+1
| | | | | | Co-authored-by: Thomas Petersson <[email protected]>
| * changed titles_no_underscore -> titlesGravatar Anubhav2020-09-21-1/+1
| | | | | | Co-authored-by: Thomas Petersson <[email protected]>
* | applied optional to correct functionGravatar Anubhav16032020-09-21-2/+2
| |
* | changed log.info(e)-> log.info(f'Caught exception {e}, breaking out of retry ↵Gravatar Anubhav16032020-09-21-1/+1
| | | | | | | | loop')
* | changed List[str]->Optional[List[str]]Gravatar Anubhav16032020-09-21-1/+1
|/
* Changed List[str]->Optional[List[str]]Gravatar Anubhav2020-09-21-3/+1
| | | Co-authored-by: PureFunctor <[email protected]>
* changed chance_left -> retry_count, and tweak the code according to pureGravatar Anubhav16032020-09-20-32/+29
|
* removed while loop and added for loopGravatar Anubhav16032020-09-20-25/+30
|
* added static method and added genrator expression and list comprehensionGravatar Anubhav16032020-09-20-11/+11
|
* corrected typoGravatar Anubhav16032020-09-17-1/+1
|
* Merge branch 'master' of github.com:Anubhav1603/seasonalbotGravatar Anubhav16032020-09-17-6/+4
|\
| * Removed unnecessary passGravatar Anubhav2020-09-17-3/+1
| | | | | | Co-authored-by: Thomas Petersson <[email protected]>
| * changed title is None to not titlesGravatar Anubhav2020-09-17-1/+1
| | | | | | Co-authored-by: Thomas Petersson <[email protected]>