55 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
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
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
Twentysix
a3c72516d5 [Owner] [p]contact: Added a 60 seconds cooldown per user 2017-02-21 21:23:19 +01:00
Caleb Johnson
036c94a091 [Owner] [p]version: Replace git@ URLs with https:// (#627)
Fixes #626
2017-02-20 22:14:38 +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
Twentysix
74f686aa5f Updated invite URLs 2017-02-04 05:51:08 +01:00
palmtree5
422c9191bd [Owner] Added [p]set default[admin/mod]role (#563) 2017-01-07 17:28:18 +01:00
Twentysix
c987a89e9c Red's launcher / Downloader reqs autoinstall (#552) 2017-01-05 02:19:54 +01:00
Twentysix
4fcf0924f3 [Owner, Economy] Use UTC in the timestamps 2016-12-30 13:00:24 +01:00
Twentysix
74fd56e81f [Core] Improved [p]uptime 2016-12-17 04:16:16 +01:00
Twentysix
27bdce7f32 [Core] CLI flags, env vars login, revamped setup, in. selfbot support, etc (#513)
Startup flags: can be started and configured without ever doing the interactive setup
Changed default settings format so that all unset values are None
Removed new cogs prompt
Removed `LOGIN_TYPE` from settings.json. It now defaults to token and fallbacks to email/password
Smarter initial setup: only asks for the settings that are actually missing
For the first installation all default cogs are loaded
Startup flag that allows settings to be memory-only
Initial selfbot support
Only reset login credentials (on confirmation) instead of deleting the whole file in case of login failure
Revamped main screen
Made sure that nothing blows up when you run Red on Windows without `chcp 65001`
Possibility of setting credentials in the environment variables `RED_TOKEN` / `RED_EMAIL` `RED_PASSWORD`. They will take priority over the configuration stored on disk.
2016-12-11 00:16:20 +01:00
Twentysix
d628bacef5 [Core] Server based prefixes (#492)
Added `[p]set serverprefix`
`Bot.command_prefix` is now a callable that returns the prefixes set for the server. If none are set, it returns the global ones.
2016-12-01 02:30:51 +01:00
Twentysix
67de9a45fe [Owner] Show [p]debug result in blocks of 4 messages 2016-11-27 00:42:42 +01:00
aikaterna
5acf2f8ec7 [Owner] Pagify [p]cogs (#482) 2016-11-20 17:56:53 +01:00
Twentysix
570e0d1b0d [Owner] Added [p]cogs command for listing of cogs 2016-11-20 05:26:00 +01:00
Twentysix
458d23c4be [General, Owner] Added more info and stylistic changes to r. embeds cmds 2016-11-18 05:42:23 +01:00
Twentysix
49567bc1a3 [General, Owner] Properly catch perm exceptions for embeds 2016-11-18 01:57:29 +01:00
Twentysix
d11d2a5867 [Owner] Rich embed for [p]version 2016-11-17 19:14:37 +01:00
Twentysix
7fe0126a79 [Core] Subclassing of Bot class, Python version check
`send_cmd_help` and `user_allowed` are now part of Bot
2016-11-17 15:03:14 +01:00
Twentysix
ce5e810e33 [Owner] Rich embed for [p]info 2016-11-16 17:34:02 +01:00
Twentysix
26404ebced [Owner] Refactoring 2016-11-14 14:40:28 +01:00
Will
c645709dea [Owner] Pagify debug (#465) 2016-11-13 19:11:50 +01:00
Twentysix
70b7fe4468 [Owner] Always allow set owner requests 2016-10-31 02:36:16 +01:00
Twentysix
4d7d00f41d [Owner] Handle non-callable checks 2016-10-23 17:52:28 +02:00
Twentysix
7a3c963009 FileIO to DataIO conversion (#410) 2016-10-10 03:40:09 +02:00
Caleb Johnson
dbcd3aedb0 [Owner] Paginate [p]servers list (#408) 2016-10-09 14:17:33 +02:00
Twentysix
b48c276af0 [Owner] Renamed [p]set status to game, added [p]set status 2016-09-28 02:33:27 +02:00
Irdumb
6c53947219 [Owner] Added [p]set stream command (#310) 2016-09-18 04:39:27 +02:00
Twentysix
f121e6a90d [Owner] Limit [p]leave to server chat 2016-09-07 08:39:09 +02:00
Twentysix
306fe1ca13 [Owner] Handle rate limit of name change 2016-08-31 18:55:49 +02:00
Twentysix
7904c51181 [Owner] Specify source of [p]contact's message 2016-08-29 06:34:30 +02:00
Twentysix
bf063f55fc [Owner] Laxer checks in [p]command disable
This will allow to disable the non-owner restricted commands of the owner cog
2016-08-28 07:22:37 +02:00
Twentysix
0efd7fa05c [Owner] Send confirmation on successful [p]contact 2016-08-26 07:43:55 +02:00
Twentysix
4b453ef22f Clearer / fixed typo in set prefix docstring 2016-08-17 15:22:01 +02:00
Twentysix
f73b616bf0 Show loading/reloading failure errors in chat 2016-08-15 22:12:28 +02:00
Twentysix
3bf840e92c [Owner] !set token no longer hidden 2016-07-04 21:27:26 +02:00
Twentysix
076dd93904 Added !contact, !info
!contact allows the user to send a message to the bot's owner
!info shows info about Red
2016-06-19 00:49:51 +02:00
Will
550dfb5875 Debug scoping fix (#305) 2016-06-15 22:53:54 -04:00
Will
ca09c4d229 Changed for Danny (#306) 2016-06-15 22:49:28 -04:00
Will Tekulve
f6383c2dfd Update owner for discord.py http changes 2016-06-14 09:25:56 -04:00
Will Tekulve
e6d9eeed25 Revert "!set stream"
This reverts commit 3a45a585b0b48fa748e8b579d8c36967697f1a91.
2016-06-13 21:33:40 -04:00
Irdumb
3a45a585b0 !set stream
couldn't be bothered figuring how to PR to anomaly's PR
2016-06-14 11:26:17 +10:00
Twentysix
3d53d4e88c Clearer cog error messages 2016-05-23 14:44:01 +02:00
Twentysix
3709d79f5b Added !unload all
Unloads all cogs at once
2016-05-22 23:00:47 +02:00
Twentysix
de5710082e Disable commands at !load !reload 2016-05-07 13:46:02 +02:00
Twentysix
def2035f19 Docstrings fix
Third time's a charm
2016-05-06 21:20:29 +02:00
Twentysix
c934dae7cf Forgot docstrings 2016-05-06 21:13:17 +02:00
Twentysix
399ddeb886 Disable/enable commands, uptime fix 2016-05-06 20:56:41 +02:00