95 Commits

Author SHA1 Message Date
Twentysix
a3c72516d5 [Owner] [p]contact: Added a 60 seconds cooldown per user 2017-02-21 21:23:19 +01:00
PlanetTeamSpeak
e6fe686d1b [Core] Send message on command cooldown (#611) 2017-02-19 15:48:03 +01:00
Twentysix
74f686aa5f Updated invite URLs 2017-02-04 05:51:08 +01:00
Twentysix
9b6804ea09 [Core] Clean exit for dry run 2017-01-19 15:11:48 +01:00
Twentysix
7b6dbd201e [Core] Improved exit codes handling
Clean exits on crashes should not happen anymore
2017-01-18 18:01:11 +01:00
Twentysix
99093f559f [Core] Empty importer cache on pip install
This ensures that the newly installed libs will be seen by the importer
2017-01-16 13:35:00 +01:00
Twentysix
b1e20d8b76 [Selfbot] No help DMs 2017-01-16 01:44:57 +01:00
Twentysix
c987a89e9c Red's launcher / Downloader reqs autoinstall (#552) 2017-01-05 02:19:54 +01:00
Twentysix
c7284ffa2a [Core] Added --dry-run flag and Travis CI boot test
This should help testing the boot process right until login
2016-12-22 18:54:27 +01:00
Caleb Johnson
6f068191f1 [Core] Refactor (#512) 2016-12-22 18:18:45 +01:00
Twentysix
2ab7ada87d [Core] Fixed faulty logic in retrieving the owner 2016-12-20 11:03:39 +01:00
Twentysix
74fd56e81f [Core] Improved [p]uptime 2016-12-17 04:16:16 +01:00
Twentysix
64ab3ac948 [Core] Added --no-cogs
Skips initial cog loading
2016-12-12 13:22:46 +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
Will
84ce5c3a8b [Core] Settings as Bot class attribute (#486)
And pep8
2016-11-22 23:10:42 +01:00
Twentysix
59d4604462 [Core] Hotfix
send_message wasn't returning the message object
2016-11-19 16:33:14 +01:00
Twentysix
90272b378a [Core] Message modifiers (#477)
Message modifiers offer an easy way for cogs to edit outcoming messages without resorting to hacky methods
2016-11-19 14:47:46 +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
Caleb Johnson
70afff5b5f [Core, Alias, Customcom] Moved bot checks to user_allowed (#454)
More selfbot friendliness for modded Reds
2016-11-14 03:36:38 +01:00
Twentysix
36216a4058 [Core] Removed outdated error checks 2016-11-14 02:23:00 +01:00
Twentysix
c4b1c01a9f [Core] Show custom message to the user if discord.py is missing 2016-11-08 04:46:54 +01:00
Will
3a51eeca65 [Core] Sorting of commands in [p]help (#449) 2016-11-07 14:08:26 +01:00
Caleb Johnson
04f121902b [Core] Exit code 1 on abnormal stop (#388) 2016-10-05 12:43:42 +02:00
Twentysix
5c13dab8e5 [Main] Handle NoPrivateMessage errors 2016-09-18 23:53:15 +02:00
Caleb Johnson
b67ba23c00 [Main] Ignore bots on on_message (#376) 2016-09-14 22:40:06 +02:00
Twentysix
f95b7c1fee [Main] Changed initial message for update.bat, added link to server 2016-09-12 00:22:05 +02:00
Twentysix
d1db34a9c4 Updated readme, cleaned up code 2016-08-11 23:44:49 +02:00
Twentysix
ca8285949d Show total # of cogs and prefixes in the console 2016-07-23 06:07:38 +02:00
Twentysix
6b40690348 Automatically set bot's owner 2016-07-23 05:47:12 +02:00
Twentysix
3bf840e92c [Owner] !set token no longer hidden 2016-07-04 21:27:26 +02:00
Twentysix
6271f9aefd Fixed faulty logic with --no-prompt 2016-06-30 23:07:17 +02:00
Twentysix
c34486a004 Changed command to update discord.py 2016-06-28 13:49:43 +02:00
Twentysix
0e3d0cc954 Silenced check failure errors 2016-06-19 18:36:14 +02:00
Twentysix
0d985e5dc1 Ignore command not found errors 2016-06-14 19:45:12 +02:00
Twentysix
8fa80da958 Prompt the user before deleting their config for wrong credentials
No more backfires.
2016-06-14 00:55:51 +02:00
Twentysix
c9e948ae26 Updated/better command error handling 2016-06-13 23:32:20 +02:00
Twentysix
61f7763605 Update to use the new bot.application_info() 2016-06-12 01:51:38 +02:00
Twentysix
a2e79e1c5a Took out prefix example
Apparently reading is hard
2016-06-04 03:01:05 +02:00
Twentysix
f5a628214b Clearer/simpler initial configuration 2016-05-26 00:14:38 +02:00
Twentysix
27ce0fc57a Revamped FileIO (#262)
Handles backups, way tidier with different functions, backwards compatible. Should fix the corrupted json issues.
2016-05-21 15:26:48 +02:00
Twentysix
7ecf7e9963 Wipe references to user accounts
They will still be supported but no longer mentioned in the setup or the docs.
2016-05-15 19:19:31 +02:00
Will Tekulve
53fcd73e1f hide debug stdout messages 2016-05-12 20:59:45 -04:00
Will
2f46605bf6 Logging to stdout (#248)
Non-infinite log files now, 50M before archive

Lower max size
2016-05-13 02:29:01 +02:00
Twentysix
399ddeb886 Disable/enable commands, uptime fix 2016-05-06 20:56:41 +02:00
Twentysix
4485de64ab Fixed initial cogs loading 2016-04-30 19:44:12 +02:00
Will
5b764c41c3 Owner cog / Version command / doc link update / OAUTH (#203)
* Version command (#183)

* reword. replace link with link to our doc

* Move all owner commands to a separate plugin (#188)

* Move all owner commands to their own plugin.

* Move all initial cog loading to Owner plugin

* Final fix of initial cog loading

* don't allow people to unload the owner plugin without reloading it

* make sure we modify the cog registry like we're supposed to

* log the functionname too

Message updates, grammar, politeness etc

Get right names in logging formatter

Ignore cogs.owner if we find it

* add version back in

add reload docstring

Heh, woops...little security bug here

* Add in globals and bot to locals

* pass exception to the logger

* Bot will now generate OAUTH URL from the supplied endpoint (#196)

* Formatting changes, revert uptime

* Store the oauth_url internally, provide it if the owner uses `!join`
2016-04-28 16:33:53 -04:00
Will
81409271f5 Version command (#183) 2016-04-24 21:25:59 +02:00
Irdumb
1e0c015400 Prompts for updates (#160) 2016-04-22 00:58:02 +02:00
Irdumb
430756347d !join point to Red-Docs (#175) 2016-04-19 20:44:58 +02:00