-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dpy 1.7 #39
Open
Silari
wants to merge
22
commits into
master
Choose a base branch
from
Dpy-1.7
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…he discord API. Embed image is now removed without transforming to dict thanks to that being added to discord.py. Changed deprecated fetch_offline_members parameter to Client to chunk_guilds_at_startup. Fix to copy dict keys to list when iterating over SavedMSG to prevent an error from modifying the dict during iteration. savedata no longer returns False if no data to save, instead return is optional. loaddata type updated - only one dict. Change to how it checks for an HTML document return - used to see if piczel is in maintenance mode.
…to internal discord.py structures to remove the role without a full Member instance.
Resolved issue where removemsg would continue the loop without removing the savedmsg if the channel or message were not found. API down message now includes date and time of the occurrence.
…not being redirected to the class specific agetstream.
…ents. TwitchContext now grabs the user records for any streams that come online, which is preserved across update checks. This gives us a bit more information for their embeds: user avatar and total viewers are now part of simple and default announcement embeds. Detail embeds from the detail command are unchanged.
…dMSG - this allows them to be immediately re-announced and stops the bot from trying to edit them anymore. Removed debug embed - changes to agetstream made it nonfunctional. Minor updates to basecontext/dbcontext comments/function descriptions for typings and such. Corrected comment - we're based on 1.5.1 now.
…the list of multi-stream partners.
detail and add commands will no longer attempt API calls if the API is down - instead returns a message stating it is down and to retry later. Added __repr__ function to Updated class. Returns either "True" or "<#> failures".
APIs are marked as down immediately on class creation - this should be updated by the initial update before the bot is even fully ready for Discord. If not, the API is almost certainly down even if it hasn't hit the timeout yet, so commands will give the proper API down message. Loading data successfully will also mark the API as up (since it meant the API was up recently).
… Also removed some unnecessary spaces. Updated some comments to take in account changes previously made. Unknown commands once again prompt a message from the bot instead of being silently ignored.
…'showtime' which is a bool that determines if the message shows how long the stream has run (when an announcement is created, this is False). Updated detailembed doc string. Removed oldestid getting from removemsg and updatemsg, as it was no longer needed to find how long a stream has run for. Refactored updatemsg to not create embeds until needed, though still only make once per call.
Bulk message deletion now calls the event for message deletion, to purge removed announcement messages.
…rd extra information in records when they first come online, we want to preserve all that data. The needed space is only temporary in any case, while the bot restarts, not for long term storage.
…er would always cause an AttributeError anyway. A few function docstrings updated/corrected. dbcontext.py now checks for the correct discord.py version. An ImportError will be raised if it is not the expected version. Added a few items to gitignore.
…on't work in discord.py 1.5+. The manage module is currently the only user, but an important one. We're skipping 1.5 to go to 1.6 directly anyway as Discord still hasn't turned off the endpoints used by 1.4.
Update discordversion to 1.6.0 as we're writing for 1.6 now.
…cts - but NOT restarts. Resolves #36
…t initiated the request, unless the response may not be in the same channel (detail command is in the announcement channel regardless of where the command is performed). Handler responses for built in contexts (except debug) are now a reply to the message the initiated the request, unless the response is not in the same channel or is in a DM. Together, this resolves #37 unless further testing shows the command needs to be modified to prevent a mention ping. Discord version updated to 1.7.1. No other changes were required to allow the new discord version.
This was
linked to
issues
Apr 12, 2021
Open
…o longer a static URL.
Re-arrange/remove some debug commands.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Updates bot to discord 1.7.1 and brings some improvements allowed by the new version.
Again, this won't be pushed to master until PicartoWatch itself is updated, but this is 100% useable as is.