503 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Twentysix
a3c72516d5 [Owner] [p]contact: Added a 60 seconds cooldown per user 2017-02-21 21:23:19 +01:00
Twentysix
c5090d6eb7 No more star imports 2017-02-21 03:16:33 +01:00
Twentysix
39bd467f80 [General] [p]urban: Encode URL before fetching
Fixes #409
2017-02-21 03:01:49 +01:00
Caleb Johnson
036c94a091 [Owner] [p]version: Replace git@ URLs with https:// (#627)
Fixes #626
2017-02-20 22:14:38 +01:00
PaddoInWonderland
73ef66e8f8 [General] Use .display_name in [p]hug, https in [p]lmgtfy (#625) 2017-02-20 22:03:44 +01:00
Twentysix
dcffab186c [Economy] Slot machine: fixed check for 2 consecutive symbols 2017-02-20 20:26:05 +01:00
Twentysix
08496d0793 [Downloader] Delete repo folder on repo removal 2017-02-17 17:21:50 +01:00
Twentysix
dad6929843 [Owner] Enhanced [p]version
Implemented part of #561's changes
Handles non-git installations and non-default remotes
Links to branch
Chained commands for better peformances (theorically)
2017-02-11 01:13:15 +01:00
Patrik Luoto
eb67e83d64 [Streams] Twitch: handle empty game / status / logo (#608) 2017-02-10 14:21:11 +01:00
Will
b8b5572b07 [Audio] Timeout voice connection + cooldown after fail (#556) 2017-02-09 15:19:40 +01:00
Thomas Mercurio
ae1244668e [Streams] Embed colors (#605) 2017-02-09 00:08:26 +01:00
Twentysix
b69b5b3005 [Streams] Added embeds and toggleable mass mentions 2017-02-08 19:03:05 +01:00
Twentysix
74f686aa5f Updated invite URLs 2017-02-04 05:51:08 +01:00
Twentysix
146d9df460 [Downloader] Reworded disclaimer, show only once every session 2017-01-31 15:54:40 +01:00
Twentysix
14dbff6dd4 [Mod] Ignore embeds in repetition filter
Fixes #590
2017-01-25 23:44:09 +01:00
Twentysix
143d41f2f2 [Audio] Better URL checking, strip enclosing tags 2017-01-24 19:34:56 +01:00