Commit Graph

611 Commits

Author SHA1 Message Date
Twentysix 719088d438 [Streams] Twitch API v5 (#718)
Twitch API v5 makes use of IDs instead of usernames.
To migrate the current data, the cog will attempt to fetch and save all the missing stream IDs on loading (in chunks of 100)
2017-04-18 23:27:00 +02:00
Twentysix 6b725560f6 [Audio] Disconnect from all VCs on cog unload 2017-04-18 12:20:14 +02:00
Twentysix 8be3d978be New README 2017-04-16 02:15:38 +02:00
Twentysix d52c9d57e7 [Streams] Added toggeable autodeletion of stream alerts
[p]streamset autodelete
Enabled by default
2017-04-15 22:52:05 +02:00
Twentysix f9d0abef92 [Streams] Refactoring (#703) 2017-04-13 22:42:14 +02:00
Twentysix 6d860b8584 [Core, Mod] Moved core functions to owner cog (#701)
Moved blacklist / whitelist functions to owner cog
Moved [p]modset adminrole / modrole to [p]set command group
Check mod/admin users against blacklist / whitelist:
Users with (server or global) admin or mod role used to be able to skip the whitelist / blacklist checks. This doesn't really make sense from a design pov since these are global checks and the commands are owner only.
[p]set adminrole/modrole: check that the role actually exists before adding it
Added [p]blacklist/whitelist list, to show the members of each list
2017-04-13 22:36:15 +02:00
MiniJennJenn 618a3f356a [Trivia] Added boom beach, NBA lists (#704) 2017-04-13 05:09:35 +02:00
Twentysix 2e5023be5f [Mod] Added [p]hackban 2017-04-13 02:22:16 +02:00
Twentysix e9e4fd083f [Owner] Added embed to [p]contact 2017-04-12 06:17:33 +02:00
Twentysix 7820319a6a [Owner] Removed [p]join's accept_invite functionality
The endpoint that accept_invite makes use of is no longer safe due to Discord's antispam measures.
2017-04-12 02:32:04 +02:00
Twentysix 1577e7d854 [Trivia] [p]trivia list: Return sorted lists 2017-04-10 17:41:11 +02:00
Twentysix 33823e2dab [CC] [p]customcom list: Removed mod check 2017-04-07 23:38:18 +02:00
Twentysix 55f6307b7f [Image] [p]imgur search: Return up to 3 results 2017-04-07 23:29:02 +02:00
Twentysix cb4c91d86f [Image] [p]imgur random: Search terms can now be specified 2017-04-07 22:59:29 +02:00
Twentysix 07c07760c9 [CC] [p]cc list: Sends to channel or DM based on message length 2017-04-07 05:37:41 +02:00
Twentysix 7a38da9152 [CC] Moved commands to [p]customcom command group 2017-04-05 22:07:43 +02:00
Twentysix f68667b628 [Core] Handle disabled DMs for [p]help 2017-04-05 02:39:06 +02:00
Twentysix 89daba4711 [Trivia] Strict matching for answers
Fixes #331
2017-04-04 17:20:17 +02:00
Twentysix 2da943bfd0 [Trivia] Further refactoring, checks in [p]trivia stop
Only mods (or superiors) and the trivia starter can stop the session now.
Answers are now shown with the correct capitalization
2017-04-03 22:10:48 +02:00
Twentysix 0e9049d716 [Economy] Show user's current name in leaderboard
Fixes #687
2017-04-02 22:00:22 +02:00
Twentysix 06800a1b5b [Trivia] Server based settings, added reveal answer setting
Further cleaned up the code
Added a toggleable setting for answer reveal on timeout
Removed all the try except statements on send_message, discord.py now handles those on its own
Displays settings in a user friendly way
2017-04-02 18:53:09 +02:00
Twentysix d757361d6e [Trivia] Initial clean up, made proper commands
Fixes #681
2017-03-31 07:25:13 +02:00
MiniJennJenn 5d5db20dcc [Trivia] Added computers list, updated others (#678) 2017-03-26 16:58:06 +02:00
Twentysix 7a0f97424b [Downloader] Fixed callbacks to load/unload 2017-03-24 12:29:16 +01:00
Twentysix 25dfefce4d [Mod] [p]reason: Better error handling for case messages
Fixes #665
2017-03-24 03:03:14 +01:00
Twentysix bc68ad21c5 [Core] Don't publicly show errors when a command fails. [p]exception
Fixes #668
The exception command sends the last occurred exception to the owner, or even publicly if requested.
The error that used to show up publicly when a command failed has been hidden for security reasons.
All references to "modules" have been changed to "cogs"
2017-03-24 00:45:41 +01:00
MiniJennJenn 613d2fe35a [Trivia] Updated various lists (#670)
Also merged the two general lists
2017-03-22 16:30:28 +01:00
Caleb Johnson 39ab99ee44 [Downloader] Disable git interaction, fix tab split (#673) 2017-03-22 14:41:00 +01:00
Twentysix 7c192b3668 [Mod] Added optional role hierarchy check
Toggleable with [p]modset hierarchy
This enables a role hierarchy check before all moderation actions. If the mod doesn't have a role superior to the user's top role the action will be denied.
Server owner and bot owner are exempt from the check.
2017-03-15 22:54:27 +01:00
Twentysix 3d9a157516 [Image] Complete rewrite: no longer blocking 2017-03-15 17:16:46 +01:00
Twentysix b5398aeacb [General] [p]userinfo: Fixed issue with discrim not showing up 2017-03-14 21:16:48 +01:00
Twentysix 56dadb09bc [Streams] Fixed issue with thumbnails being None
Issue on beam but we'll check it on all services for good measure
2017-03-14 06:23:39 +01:00
Kowlin acb0fcac29 [Downloader] Added "HIDDEN" field to cog info.json format (#657) 2017-03-14 01:54:17 +01:00
Twentysix f32b3acd4c [Streams] Avoid Discord's thumbnail caching 2017-03-12 07:10:25 +01:00
Twentysix 7ef878864e [Mod] Added unban event to mod-log
Also implemented an interface to deal with the double event triggering issue in an easier way
2017-03-10 17:40:49 +01:00
Twentysix 361d45e724 [Mod] Fixed some case toggles not working properly
Check is now done at function level
2017-03-10 05:51:37 +01:00
Leo Garcia 5ba312c45a [Launcher] Typos and better wording (#648) 2017-03-10 04:41:09 +01:00
MiniJennJenn 3768d7ec2c [Trivia] Update disney and starwars lists (#651) 2017-03-10 04:34:58 +01:00
Twentysix 31426ca7c6 [Mod] Prevent users from expelling themselves 2017-03-09 02:16:18 +01:00
Twentysix a0aa69e083 [Mod] Show name and discrim in mod-log 2017-03-05 17:47:08 +01:00
Twentysix 72bc7182b0 [Audio] Check channel's user limit before joining it 2017-03-03 16:26:32 +01:00
Twentysix c25c5629ea [Mod] Paginate [p]filter output 2017-03-03 14:53:23 +01:00
Twentysix fb632ef54f [Streams] Handle no avatar set for beam.pro 2017-02-26 05:26:16 +01:00
Chovin acc86d08db [Streams] Fetch APIs with utf-8 encoding (#642) 2017-02-26 05:14:12 +01:00
Caleb Johnson 343fc80406 [Mod] Enhanced mod-log (#491)
Case management:
    - Centralize formatting code
    - Store raw action type
    - Centralize pretty-print (emoji) representation of actions
    - Store creation and update timestamps
    - Allow edits from admin or bot owner
    - Enable or disable case creation on a per-action basis
    - Preliminary support for action durations
Mute:
    - Add case creation (on by default for server, not channel)
    - Show channel member was muted in in modlog entry
2017-02-22 19:39:52 +01:00
Andrew Nguyen 2ab372e557 [Trivia] Update worldflags.txt (#640) 2017-02-22 18:20:47 +01:00
MiniJennJenn 99ea54dd1c [Trivia] Updated anime, leaguefacts, leagueults lists (#636) 2017-02-22 16:08:05 +01:00
Twentysix a3c72516d5 [Owner] [p]contact: Added a 60 seconds cooldown per user 2017-02-21 21:23:19 +01:00
MiniJennJenn 086190cae4 [Trivia] Update starwars.txt list (#632) 2017-02-21 17:42:02 +01:00
MiniJennJenn f67ddee29f [Trivia] Added entertainment.txt list (#631) 2017-02-21 16:00:20 +01:00