aboutsummaryrefslogtreecommitdiffstats
path: root/bot/constants.py (unfollow)
Commit message (Collapse)AuthorLines
2019-02-16Fixed grammar, quotation style and dictionary styleGravatar abdullah oday-11/+12
2019-02-16Unindented commentGravatar abdullah oday-1/+1
2019-02-16Fixed an issue with the requestGravatar abdullah oday-20/+19
2019-02-16Fixed log.warningGravatar abdullah oday-1/+1
2019-02-16Made warning message more explicitGravatar abdullah oday-3/+4
2019-02-16Added logging for KeyErrorGravatar abdullah oday-0/+2
2019-02-152nd code review complete. Default roll once and warning to roll at least ↵Gravatar astieman-2/+2
once implemented.
2019-02-16Used bot.http_session instead of creating a new session, and now checking ↵Gravatar abdullah oday-16/+19
for KeyError
2019-02-15Removed "Generator" fom log.debugGravatar abdullah oday-1/+1
2019-02-15Fixed quotation style, removed unnecessary newlineGravatar abdullah oday-14/+13
2019-02-15Fixed grammar issues, Moved constants to the top, Changed function nameGravatar abdullah oday-14/+13
2019-02-15Fix LoveCalculator 0% bugGravatar Darth Delay-3/+3
Recently a test of the .love command revealed an unintentional reaction when 100% are reached. In previous versions this command had used a gigantic conditional block, checking for the current percentage given by the love_meter formula. When reaching 0 (meaning that the UserID's evenly divided with 100) it would automatically convert that 0 to 100. A big mistake from my side back then. This has been fixed with these changes. By quickly modifying the formula to use a mod 101 instead of a mod 100, we get an accurate percentage, ranging from 0-100% instead of 0-99%. love_matches.json has also been fixed to address these changes, meaning that the lowest entry now actually is 0 and the highest 100. TL;DR: -> Edited love_meter formula to calculate mod 101 instead of mod 100 -> Edited lowest and highest entry in love_matches.json to be 0 and 100
2019-02-14Code review changes implemented. Reverted so error handling is done by base bot.Gravatar astieman-15/+7
2019-02-14changed import orderGravatar abdullah oday-1/+1
2019-02-14removed print functionGravatar abdullah oday-1/+0
2019-02-14Replaced urlib with aiohttp , added docstrings and fixed issuesGravatar abdullah oday-22/+24
2019-02-14createdGravatar abdullah oday-1/+3