Commit f5b01c2
authored
Add schedule endpoint and models (#211)
* Replace if statement with if expression
* Simplify conditional into return statement
* Inline variable that is immediately returned
* Comparison moved to the right
Use set when checking membership of a collection of literals
* Inline variable that is immediately returned
* remove none from dict.get returns none by default
* Replace if statement with if expression
Replace multiple comparisons of same variable with `in` operator
Remove redundant conditional
* Merge nested if conditions
Remove none from dict.get returns none by default
* Lift code into else after jump in control flow, Merge else clause's nested if statement into elif
Remove redundant pass statements
Simplify logical expression
* Inline variable that is immediately returned
* Merge nested if conditions
Inline variable that is immediately returned
* Merge nested if conditions
* Swap if/else branches, Remove unnecessary else after guard condition
* Replace unneeded comprehension with generator
* added fetch_channel to client
* formatting
* remove typehint of User
* Added fetch_follow method
Removed for loop for fetch_channel
* Update README.rst
Added myself....just because
* fix remove_cog
* Fixed remove_cog
* changed from list to set
* Moved fetch_follow to user from client
Fixed black formatting to 120
* Added ChannelInfo class in models
Changed fetch_channel to return the ChannelInfo object
* Removed except from remove_cog
Issue was in unload_module
Missing .items() for callsbacks
Missing .__name__ for comparison
* fixed reload_module
* added created_at to User class
* Routine fix where after task run completion
iterations would set to 0 and run infinitely.
* Add typehint for PartialUser in fetch_follow
* Removed duplicate fetch_channel
Updated docstring fetch_channel
* Changed badges to a property
returns a dict
* change to more obvious wording
* fetch duplicate fetch_channel
update docstring
* added founder to is_subscriber
* Update websocket to fix chatters
Correct some typos
Update badges docstring
Fix eventsub BanData key
* reverted changes to ChannelBanData model
* changed payload key to is_permanent for ChannelBanData
* Added Schedule models
Added user method fetch_schedule
Added associated API calls
Added explicit detail in fetch_channel docstring
* forgot to merge
* Revert "changed payload key to is_permanent for ChannelBanData"
This reverts commit ba16c04.
* Revert "forgot to merge"
This reverts commit 7b16588.
* Revert "Added Schedule models"
This reverts commit ea6f7bf.
* trying to fix my own repo
* add
* Added Schedule models
Added user method fetch_schedule
Added associated API calls
Added explicit detail in fetch_channel docstring
* added back in newlines from formatting
* change to list comp
* black formatting
* change raise to ValueError and move above comp
* changed segment_ids to list
* update docstring
* update docstring
* Changed start_time to datetime object
Internal conversion to RFC3339
Changed utc_offset to int and convert to str later
* adding modify stream to match master
* adding back in schedule1 parent 1d475ca commit f5b01c2
4 files changed
+131
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
| 400 | + | |
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
766 | 766 | | |
767 | 767 | | |
768 | 768 | | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
769 | 808 | | |
770 | 809 | | |
771 | 810 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
612 | 612 | | |
613 | 613 | | |
614 | 614 | | |
615 | | - | |
| 615 | + | |
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
| |||
654 | 654 | | |
655 | 655 | | |
656 | 656 | | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
604 | 604 | | |
605 | 605 | | |
606 | 606 | | |
607 | | - | |
| 607 | + | |
608 | 608 | | |
609 | 609 | | |
610 | 610 | | |
| |||
696 | 696 | | |
697 | 697 | | |
698 | 698 | | |
699 | | - | |
700 | 699 | | |
701 | 700 | | |
702 | 701 | | |
| |||
716 | 715 | | |
717 | 716 | | |
718 | 717 | | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
719 | 752 | | |
720 | 753 | | |
721 | 754 | | |
| |||
0 commit comments