aboutsummaryrefslogtreecommitdiffstats
path: root/bot/bot.py (unfollow)
Commit message (Collapse)AuthorLines
2021-02-02Add not Implemented error handler for .status cat commandGravatar Shivansh-007-0/+3
2021-02-01Fixes Issue Matching RegexGravatar Hassan Abouelela-1/+1
Changes the automatic issue matching regex to make it work for repos at the very beginning of messages.
2021-02-01Remove brackets from .joinGravatar Shivansh-007-1/+1
2021-02-01Add similar repsonse.status check to too, and instead of ValueError raise ↵Gravatar Shivansh-007-4/+12
NotImplemented error if the status is not implemented yet but is a valid status code
2021-02-01rename the cog to HTTPStatusCodesGravatar Shivansh-007-3/+3
2021-01-31Remove unused importsGravatar Shivansh-007-2/+0
2021-01-31Add mod_meta and mod_tools channels to whitelistedGravatar Shivansh-007-1/+3
2021-01-30Fix PYTHON_DISCORD_REPOS format variable name and give it a better nameGravatar Shivansh-007-2/+2
2021-01-30Fix channel and category check logicGravatar Shivansh-007-7/+11
2021-01-28Add http status dog and add http_cat to group http_statusGravatar Shivansh-007-33/+63
2021-01-27Fix return type annotationsGravatar Shivansh-007-2/+2
2021-01-27Add check for in category and in remove overide_channel check and do it ↵Gravatar Shivansh-007-5/+22
without decorator
2021-01-27Improve code block regexGravatar Shivansh-007-8/+10
2021-01-26Add docstring to FetchIssueErrors and remove extra new lineGravatar Shivansh-007-1/+2
2021-01-26Fix lint issuesGravatar Shivansh-007-1/+1
2021-01-26Use enums for fetch issue errors.Gravatar Shivansh-007-4/+11
2021-01-26Make the python_discord_repos' orgranisation name configurableGravatar Shivansh-007-3/+3
2021-01-26Change PYDIS_REPOS to PYTHON_DISCORD_REPOSGravatar Shivansh-007-3/+4
2021-01-26Use list.extend while appending issue linksGravatar Shivansh-007-1/+1
2021-01-26Cache repo regexGravatar Shivansh-007-2/+2
2021-01-26Remove debug code.Gravatar Shivansh-007-1/+0
Co-authored-by: Xithrius <[email protected]>
2021-01-26Remove debug code and add docstrings.Gravatar Shivansh-007-2/+3
2021-01-26Add in codeblock checkGravatar Shivansh-007-8/+40
2021-01-24Decrease timeout from 120 sec to 30 secGravatar ks129-1/+1
2021-01-24Removed newline between if/else statement.Gravatar xithrius-1/+0
2021-01-24Changed comic argument error for fluency of reading.Gravatar Xithrius-1/+1
Co-authored-by: ChrisJL <[email protected]>
2021-01-24Finished up optimization of statements.Gravatar xithrius-4/+7
2021-01-24Grammer formatting.Gravatar xithrius-2/+2
2021-01-24Added handling for comic arguments and interactive comics.Gravatar xithrius-11/+25
2021-01-24Added soft red color if the command fails.Gravatar xithrius-0/+2
2021-01-24Added footer comic number for random and latest.Gravatar xithrius-1/+1
2021-01-24Refactored the xkcd command, added a refresher.Gravatar xithrius-57/+56
2021-01-24Put a space after the colons for #562 trivia.Gravatar Xithrius-6/+6
2021-01-23Add ability to automatically send issues if matching <repo>#<issue>Gravatar Shivansh-007-27/+69
2021-01-22Update the README badgesGravatar Matteo Bertucci-1/+4
2021-01-21Fixed battleship reading uppercases incorrectly.Gravatar aruna2019-1/+1
2021-01-21Implement Spooky Name Rate gameGravatar Vivaan Parashar-0/+2607
removed commented code added the delete command Changed the name from ratethespook to spooknamerate renamed file too rename ratethespook.json to spooknamerate.json Added more names from mockaroo added one user one reaction removed print statements fixed flake8 comments and prevented the user from deleting the word while polling fixed typo, added random messages, made each entry unique, fixed one user one reaction, made it for one day. I think I am done commented some code autopep8ed edited few lines of code added comments added some comments edited code edited code edited fixed syntax error fixed flake8 complaints fixed flake8 complaint fixed small error added a `word` command and informed user if they don't have a registered word fixed a small error where the first and last names weren't separated removed unecessary code changed word to name remove slash in multiline strings and remove unecessary comments. Also, lock the background loop to `OCTOBER` and make emojis into discord emoij form (:emoij_name:) fixed an accidental tab removed another unecessary comment remove more unecessary comments remove `.keys()` for dictionaries removed `len() > 0` for lists and dicts and changed emojis to '\N{}' form Fixed code so that return value is that specified and added fail-safes instead of `if` and `else`s f-stringify fixed borderline api abuse and missing space in defining word lint code multiple imports on one line and fix typo remove unecessary return, shorten var typehint remove 'Just' in suggestion and add extra line in json file. - unecessary comment and replace on with for in help embed description shorten emoij_message remove check in delete command use defaultdict sort imports group imports, add typehinting, remove unnecessary comments and docstring, remove redundant elses and returns sort imports refactor var wrds, use generator instead of list use typing.Dict[str, str] instead of dict and use .items() instead of get() add a comment remove reduntant comment Renamed variable to avoid conflicts add asyncio locking to prevent Runtime error add some comments lock all commands to OCTOBER enhance looping in checking messages add `cog_check` instead of limiting each command remove unused import remove test code and comments use fail fast rename function Make storage persistent and make sure announce_word does not go off everytime the bot restarts fixed typo make data persist, rename everything that has word in it to 'name' and make sure announce_name doesn't start off everytime the bot restarts. remove testing code which would cause a real mess if commited. Which I did commit. use a separate file for the name and first_time becuase re-dumping such a long file might take time make var for repetitive paths and change .day to .hour change scheduling logic lint code add cog_unload fix error in spooknamerate_names.json and fix the before_loop in spooknamerate.py revert accidental changes and remove commented code remove unused code refactor vars to caps and make emojis_val global edit docstring and make seasonalbot_commands to community_bot_commands make annotation correct and add check when channel is None for get_channel Add fullstop Loop directly over data Add a proper dash and fix linting Fix linting reverted to making EMOJIS_VAL global and fixed capitalization fix small error verify it is working and simplify import remove data files Use redis caching instead of JSON and rename remove empty title and description in embed and use discord's red color remove var typehint add Client.month_override for dev move ping function rename seasonalbot to sir-lancebot remove unnecessary newline fix line formatting move added_messages to global Add more info on the caches remove + alias improve formatting use str.format instead of func fix error directly used Channels.community_bot_commands get user from cache instead of actively fetching the user move help messages to constant add more info in err msg Apply suggestions from review Co-authored-by: ks129 <[email protected]> remove unnecessary comments remove another redundant comment improve formatting and use better var names hard-code a var Use get or fetch format Remove redundant commit Fix in_allowed_month for debugging remove extra space make channel name link to channel simplify uteration use msg.reactions directly rename r to reaction and directly use variable reformat code use from_dict instead of manually creating the Embed Remove commented code fix channel linking add some debugging support add some more info to the debug mode Directly use getLogger sort imports Remove (name) in function doctype Use SpookNameRate.debug everywhere Shrink function call to one line and remove extra info in comment Use fail fast in on_reaction_add use environment var for debug mode Set debug val to False by default Fix some line breaks that formatting with black had made and use fail fast Use custom environment variable instead of the global bot env var make bot reply and store info from the bot's reply instead of the user's message remove an accidental swp file fix the reaction not getting removed remove extra brackets use generators instead of lists fix logging statement simplify loop rename spooknamerate to spookynamerate Correct docstring Improve the name announcing code Ignore reaction of all bots rearrange or send "Name deleted" instead of "Message deleted" Add client prefix
2021-01-20Update trivia_quiz.jsonGravatar soul crusher 2005-0/+12
new questions
2021-01-17Fix indentionGravatar ks129-1/+1
2021-01-17Remove unnecessary line splitGravatar ks129-3/+1
Co-authored-by: Xithrius <[email protected]>
2021-01-16Fix too long lineGravatar ks129-1/+4
2021-01-16More grammar fixesGravatar ks129-2/+2
2021-01-16Improve "your turn" messageGravatar ks129-1/+1
2021-01-16Add missing a articleGravatar ks129-1/+1
Co-authored-by: ChrisJL <[email protected]>
2021-01-16Fix grammarGravatar ks129-1/+1
Co-authored-by: ChrisJL <[email protected]>
2021-01-16Move Tic Tac Toe board to embed descriptionGravatar ks129-2/+6
2021-01-15Updates ConstantsGravatar Hassan Abouelela-2/+4
Updates the constants file with the new channel ID, and renames both channels to match the new names.
2021-01-15Remove sprint channels from the configuration.Gravatar Matteo Bertucci-34/+0
Now that the core dev sprint has ended, we can safely remove those. It caused the wrong channel message to be huge because of all the deleted channels.
2021-01-09Actually use 256 coloursGravatar Chris-1/+1
2021-01-09Simplify check_win function returningGravatar ks129-12/+12