51 Commits

Author SHA1 Message Date
Will
118df46630 [i18n] Basic Implementation (#948)
* Initial commit

* Beginning of working i18n

* Add some translation files

* Add more strings to translate

* Update and add some more translations

* Update spanish translation

* Update french translation

* Add alias translation templates

* Add bank translations

* Add economy translations

* Add general translations

* Add image translations

* Add core translations
2017-08-26 18:54:51 -04:00
Will
3d76f3a787 [Core V3] Make the bot data path configurable (#879)
* Initial commit

* Fix sentry

* Make cog manager install path work relative to the bot's dir

* Fix downloader to save data relative to the defined data folder

* Fix sentry test

* Fix downloader tests

* Change logfile location

* Add another line to codeowners

* Basic tests

* Fix versioning

* Add in FutureWarning for config file changes

* Add reference to issue
2017-08-20 15:49:51 -04:00
Tobotimus
2700a005d4 [Core V3] Fix reload (#927) 2017-08-15 19:46:31 -08:00
Tobotimus
115418d323 [Core V3] Fix checks (#924)
* Fix global checks

* Fix bank's checks

Predicates for decorators return true or false, they don't return other decorators

* Async getters in core checks
2017-08-15 14:09:57 -08:00
zephyrkul
2a19f151fc [Core V3] Fix pagify bug (#920)
* Let's try this again...

* accidentally a colon
2017-08-15 00:42:48 -04:00
Will
fa5a1f9c19 [Docs] Config fix (#921) 2017-08-14 14:53:11 -08:00
Will
da28630644 [Config] Modify config's all methods to provide default values (#916)
* Add in functionality for Tobotimus

* Cover all_guilds

* Make it obvious

* Fix auto rename of docstrings

* Fix downloader docs warning
2017-08-14 11:56:53 -08:00
Will
248d2baa2a [Config] Fix get_attr with awaited getters (#912) 2017-08-13 19:02:38 -04:00
palmtree5
680a44c4b4 [Core] Add shutdown command (#911) 2017-08-12 16:41:25 -08:00
Will
f78c33445c [Docs] Cog Manager (#901)
* Cog manager docs

* Oops, kinda need this
2017-08-12 14:03:28 -08:00
palmtree5
fd684bdb58 [Docs] Add bank docs (#900)
* Add bank docs

* [Docs] fix bank docstrings for formatting

* [Docs] add bank to toctree

* rename and make bank rst use members

* Formatting changes

* Add account to dunder all
2017-08-11 21:59:27 -04:00
Will
de912a3cfb [Config] Asynchronous getters (#907)
* Make config get async

* Asyncify alias

* Asyncify bank

* Asyncify cog manager

* IT BOOTS

* Asyncify core commands

* Asyncify repo manager

* Asyncify downloader

* Asyncify economy

* Asyncify alias TESTS

* Asyncify economy TESTS

* Asyncify downloader TESTS

* Asyncify config TESTS

* A bank thing

* Asyncify Bank cog

* Warning message in docs

* Update docs with await syntax

* Update docs with await syntax
2017-08-11 21:43:21 -04:00
Will
cf8e11238c [Docs] Copy over config docs from red-api-docs (#899)
* Update config.Config docs

* Set group docstrings

* Update Value docs
2017-08-11 01:39:43 -04:00
Will
13cabfbad7 [Core] Add multiple/external cog paths support (#853)
* WIP cog path manager

* Initial working state

* Get real reloading working

* Type error thingy

* And fix the tests

* Start UI shit

* path reordering

* Add install path getter/setter and fix config syntax

* Determine bot directory at runtime

* Add UI commands for install path

* Update downloader to use install path

* Add sane install path default

* Make evaluation of cog install path lazy

* Some typing fixes

* Add another line to codeowners

* Conditionally put install path in paths

* Always put install path first

* Dont allow people to add the installdir as an additional path, guarantee install dir isn't shown with paths command

* Make shit update loaded cogs

* Add tests

* Another one
2017-08-10 23:09:49 -04:00
Will
0651a6ddc3 [Bank/Economy] Fix leaderboard bug due to previous config PR (#894) 2017-08-09 22:00:30 -04:00
Twentysix
9a1064c81d [Core] Added [p]contact and [p]dm (#875)
* [Core] Added [p]contact and a way to DM users through Red

* Turned reply feature into [p]dm command

* Better docstring
2017-08-09 21:48:50 -04:00
Will
d4da9edb3e [Config] Fix 'all' handling to match docs (#889)
* Fix some stuff to match docs

* For Palm__ <3
2017-08-09 21:39:19 -04:00
palmtree5
4923ffe98a [Economy] [WIP] rewrite (#781)
* [Economy][Bank] redo branch

* WIP

WIP

* Implement all current bank commands API calls

* Set dunder all and put into bot

* make core change to economy

* Add is_global method to bank

WIP

* Add extra bank API commands

* Update bank UI

Update some imports

Remove bank UI errors file

Typing thing

* Update bank get_global_accounts and touch up economy some more

Do some more economy updates

* Remove bank from bot

* Another passing test

FINALLY

* Fixy type things

Last fixes for now

Fix arg to toggle global

RJM

Invalid bid amount handler

cooldown msg

currency name fix

Fix fun bug

ANother bug

And payday limit

* PEP8 stuff

* Docstring change

* Fix this thing

* [Economy][Bank] redo branch

* [Economy][Bank] modify guild owner or bot owner check, add admin or bot owner check for global vs local bank

* [Economy] apply admin or bot owner check to [p]economyset

* Make some public things private

* [Economy] lots of refactoring for conditional permission checks and guild checks + supporting global economy

* And working stuff

* Fix Kowlin's bug

* Fix slot bugs
2017-08-09 17:23:41 -08:00
Will
99bfb2fc7a [Config] Rewrite (#869) 2017-07-31 01:40:31 +02:00
Kowlin
5c2be25dfc [Sentry] Cleared out websocket breadcrumbs (#870)
This adds additional protections to make sure no sensitive information gets caught in our Sentry error logger.
2017-07-28 00:24:09 -04:00
Twentysix
b1601b1bf0 [Dev] server -> guild in dev commands 2017-07-27 01:33:40 +02:00
Twentysix
be5c7f4592 [Core] Co-owners cli flag only, implemented owner cli flag
After giving it further thought, I don't believe co-owners really need to be a command, as it is unlikely that co-owners will need to be changed often enough.
Furthermore, this gives a further layer of protection to people who like to gloss over warnings.
2017-07-25 01:48:13 +02:00
Twentysix26
74910a490b [Core] Fixed [p]set owner 2017-07-19 11:30:40 +02:00
Will
d8710f0c7d [Downloader] [p]findcog: Find a cog from a command (#855) 2017-07-12 23:41:22 +02:00
Kowlin
150de9ed6f Revert "Added Dev_commands to the Sentry logger (#826)" (#831)
This reverts commit b483e24e3365e757bcf6068c605597b155f80802.
2017-06-30 17:03:09 +02:00
Kowlin
b483e24e33 Added Dev_commands to the Sentry logger (#826) 2017-06-30 16:55:30 +02:00
Twentysix
2d02dcf682 [Dev] Cast repl output to str before sending 2017-06-24 20:41:02 +02:00
Will
80756ba490 [Core] Add dynamic versioning based on git tag (#790) 2017-06-18 02:18:08 +02:00
Twentysix
b12a41cd77 [Dev] Fixed [p]repl, sanitize [p]eval output 2017-06-17 19:12:53 +02:00
Will
9b4581a781 [Core] Fixed [p]set owner and [p]set avatar (#817) 2017-06-17 17:31:44 +02:00
Will
7b91bc0633 [Dev] Added [p]repl and [p]eval (#814) 2017-06-16 21:00:32 +02:00
Will
94cfd23c00 [Core] Add Sentry logger for core cogs data gathering only (#813) 2017-06-16 20:48:00 +02:00
Will
422bbba7f6 [Config] Fix get() functionality (#815) 2017-06-16 20:35:32 +02:00
Twentysix
c5ab97ce0d [Core] Fixed owner request's author not showing up 2017-06-04 19:53:12 +02:00
Twentysix
35c88084ba [Core] Ported [p]set commands, added [p]set coowners 2017-06-04 19:37:39 +02:00
Twentysix
0fc4939a07 [Utils] Fixed pagify 2017-06-03 05:34:48 +02:00
Will
82d9457647 Sentry error logging (#784) 2017-05-29 22:43:00 +02:00
Will
3988fbbc09 [Core] Replaced JsonDB with Config (#770) 2017-05-28 04:28:59 +02:00
Twentysix
311339240f [Core] Added separate dev cog
This is enabled with the cli flag --dev
2017-05-14 03:20:54 +02:00
Twentysix
cf2925978b [Core] Interactive configuration 2017-05-13 23:55:14 +02:00
Twentysix
592751884e [Core] Reworked intro and added oauth url 2017-05-01 03:23:05 +02:00
Twentysix
51ce2d82d6 [Core] Added relative_path parameter to json helpers
Since these helpers will mostly be used by packages, it's important to make sure that the data they create stays contained inside them. This also brings the additional benefit of being able to manipulate data inside a package without knowing the name of the package's folder itself
2017-04-30 05:12:00 +02:00
Twentysix
ba9d4b7f0f [Core] Implemented missing checks, extended DB
The DB has been extended and now covers the functionality of the old Settings class of the previous version
2017-04-30 00:28:56 +02:00
Twentysix
9fc4e54ece [Core] Removed flusher, helpers now save on changes
After some considerations, while the flusher was an interesting experiment, it doesn't seem to be reliable enough. It's been removed in favor of the helpers autosaving on any change in a threadsafe way.
2017-04-29 19:26:34 +02:00
Twentysix
bd341f1875 [Core] Properly end tasks and process flusher's queue on quit 2017-04-28 18:13:02 +02:00
Twentysix
b113a94c52 Added requirements.txt and LICENSE, removed duplicate file 2017-04-28 09:16:10 +02:00
Twentysix
294adf270f [Core] Save package status and restore it on boot
Also better error handling on package loading
2017-04-28 09:16:10 +02:00
Twentysix
1d3b541e8f [Core] Handle connection errors, fetch token from env var / db
Also reimplemented the old status codes
2017-04-28 09:16:10 +02:00
Twentysix
cc1d7b2b59 [Core] Check for coowners in the db 2017-04-28 09:16:10 +02:00
Twentysix
36b19de9da [Core] Moved checks.py to main core package 2017-04-28 09:16:10 +02:00