Skip to content
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

Merged
merged 22 commits into from
Jun 24, 2024
Merged

Dpy 1.7 #39

merged 22 commits into from
Jun 24, 2024

Commits on Oct 18, 2020

  1. Updates for discord.py 1.5.0 update. This brings in some changes to t…

    …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.
    Silari authored and Silari committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    cb2c142 View commit details
    Browse the repository at this point in the history
  2. Fix for #32 - uses the available info on the user and role to call in…

    …to internal discord.py structures to remove the role without a full Member instance.
    Silari authored and Silari committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    64f51ed View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2020

  1. Fixed missing parameter name to set_image

    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.
    Silari authored and Silari committed Oct 19, 2020
    Configuration menu
    Copy the full SHA
    c7f76f9 View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2020

  1. Resolved issue with adding offline streams due not agetstreamoffline …

    …not being redirected to the class specific agetstream.
    Silari authored and Silari committed Oct 20, 2020
    Configuration menu
    Copy the full SHA
    6420c83 View commit details
    Browse the repository at this point in the history
  2. Fixed issue with debug purge not checking for correct number of argum…

    …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.
    Silari authored and Silari committed Oct 20, 2020
    Configuration menu
    Copy the full SHA
    f8b5ff2 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2020

  1. Deleted announcement messages are now removed from the cache and Save…

    …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.
    Silari authored and Silari committed Oct 24, 2020
    Configuration menu
    Copy the full SHA
    1ce96ed View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2020

  1. Corrected issue in picartorecord that did not remove the record from …

    …the list of multi-stream partners.
    Silari authored and Silari committed Oct 31, 2020
    Configuration menu
    Copy the full SHA
    9ed1521 View commit details
    Browse the repository at this point in the history
  2. Fixed missing character in help messages.

    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".
    Silari authored and Silari committed Oct 31, 2020
    Configuration menu
    Copy the full SHA
    c177029 View commit details
    Browse the repository at this point in the history
  3. Fixed issues with new API down messages.

    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).
    Silari authored and Silari committed Oct 31, 2020
    Configuration menu
    Copy the full SHA
    2104638 View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2020

  1. Fixed help still showing 'listen' command - was changed to 'channel'.…

    … 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.
    Silari authored and Silari committed Nov 1, 2020
    Configuration menu
    Copy the full SHA
    44ea05c View commit details
    Browse the repository at this point in the history
  2. Removed snowflake parameter from simpembed and makeembed, changed to …

    …'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.
    Silari authored and Silari committed Nov 1, 2020
    Configuration menu
    Copy the full SHA
    c561295 View commit details
    Browse the repository at this point in the history
  3. Updated version number.

    Bulk message deletion now calls the event for message deletion, to purge removed announcement messages.
    Silari authored and Silari committed Nov 1, 2020
    Configuration menu
    Copy the full SHA
    fb76e2d View commit details
    Browse the repository at this point in the history
  4. savedata no longer discards records for unused streams. Since we reco…

    …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.
    Silari authored and Silari committed Nov 1, 2020
    Configuration menu
    Copy the full SHA
    23ec620 View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2020

  1. Made message parameter in setmsgid required. The default None paramet…

    …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.
    Silari authored and Silari committed Nov 4, 2020
    Configuration menu
    Copy the full SHA
    d0fe6ea View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2021

  1. resolveuser doesn't work without intents, meaning anything using it w…

    …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.
    Silari authored and Silari committed Mar 19, 2021
    Configuration menu
    Copy the full SHA
    aa7591f View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2021

  1. Update Picarto API URLs for new API version.

    Update discordversion to 1.6.0 as we're writing for 1.6 now.
    Silari authored and Silari committed Apr 8, 2021
    Configuration menu
    Copy the full SHA
    89a1172 View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2021

  1. Fix picarto date format change.

    Silari authored and Silari committed Apr 9, 2021
    Configuration menu
    Copy the full SHA
    4bc46a0 View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2021

  1. Added command to set the bot status which is preserved across reconne…

    …cts - but NOT restarts. Resolves #36
    Silari authored and Silari committed Apr 10, 2021
    Configuration menu
    Copy the full SHA
    5e61dc2 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2021

  1. Handler responses for API contexts are now a reply to the message tha…

    …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.
    Silari authored and Silari committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    b6232ca View commit details
    Browse the repository at this point in the history
  2. Resolves #37

    Bot replies will not trigger mentions.
    Silari authored and Silari committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    7e1e3ab View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2021

  1. Fix for Picarto API changes - avatar URL is always provided, and is n…

    …o longer a static URL.
    Silari authored and Silari committed Apr 29, 2021
    Configuration menu
    Copy the full SHA
    579a3f9 View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2021

  1. Fix error in description of loaddata

    Re-arrange/remove some debug commands.
    Silari authored and Silari committed Dec 19, 2021
    Configuration menu
    Copy the full SHA
    56dc074 View commit details
    Browse the repository at this point in the history