75 Commits

Author SHA1 Message Date
Tobotimus
6b1fc786ee [Dev V3] mockmsg command (#928) 2017-09-04 01:49:49 -04:00
palmtree5
48e36d3ca1 [V3 docs] Add a tutorial for Config and fix Bank docs (#959)
* [V3 docs] Add a tutorial for Config

* fix missing colon

* Add some links to the actual methods

* Fix bank docs
2017-09-04 01:13:33 -04:00
Will
ff1864779a [i18n] Make locale switching permanent (#962)
* remove unused import

* Make set locale permanent

* Add codeowner
2017-09-03 20:36:01 -08:00
Will
73643f84ae Logic error (#960) 2017-09-03 19:12:28 -08:00
Pier-Angelo Gaetani
51fe1411cd [i18n] Spanish translation (#949)
* [i18n] Initial spanish translations.

* [i18n] Minor correction.

* [i18n] Character corrupted fix.

* [i18n] File info filled, author name corrected.

* [i18n] Economy corrections.

* [i18n] General, corrupted character and question/exclamation mark corrections.

* [i18n] Economy, question/exclamation mark corrections.

* [i18n] Core translations added.

* [i18n] One too many newlines.
2017-09-01 23:38:36 -04:00
Kowlin
409ac569b2 Update Crowdin configuration file 2017-08-30 18:18:32 +02:00
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
Jori van Ee
b7f1d9ed1a Update main.py (#934)
* Update main.py

Move discord import to the beginning of file, aswell as the version check, if the version wasn't atleast major_version 1 it would give an exception in the core imports (bot.Guilds isn't defined)!

* Move sys import up
2017-08-19 11:09:28 -08:00
aikaterna
cd32932b75 Added await to set for currency name (#935) 2017-08-19 10:36:11 -08: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
Will
c6762234e6 [Docs] Update downloader framework docs (#914)
* Update installable

* Update Repo manager
2017-08-13 19:00:10 -04:00
palmtree5
0ba6d9a5af [Image] Rewrite for V3 (#768)
* [Core] add imgurpython to requirements

* [Image] v3 rewrites

* remove imgurpython from requirements

* [Image] switch to Config, add in instructions for getting imgur client id

* Add default register
2017-08-13 16:14:45 -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
Will
85b0f34395 This is actually awesome! (#909) 2017-08-11 19:53:05 -08:00
Will
f6cbe82848 Damnit (#908) 2017-08-11 18:55:35 -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
96a93e00aa Fix Edit on Github button (#904) 2017-08-11 17:51:17 -08: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
7e05903c61 [Docs] The beginning of the reign of autodoc (#898)
* Update gitignore

* Add docs basic config

* Add config options for rtd and autodoc

* Add requirements.txt and update conf to support coros

* Add downloader cog docs

* Add downloader reference docs

* Add config, apparently invalid rst syntax breaks a lot of shit
2017-08-11 00:14:42 -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
Will
2fa5792f69 [GitHub] Contributing guidelines (#864)
Add `CONTRIBUTING.md` to the project.
2017-07-22 22:55:47 -04:00
Twentysix26
74910a490b [Core] Fixed [p]set owner 2017-07-19 11:30:40 +02:00
Will
19c69aaca6 Added CODEOWNERS file (#848) 2017-07-15 14:59:51 +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
8fa967cb91 Added Alias cog (#780) 2017-06-21 22:59:26 +02:00
Will
80756ba490 [Core] Add dynamic versioning based on git tag (#790) 2017-06-18 02:18:08 +02:00
Twentysix
03791b9fbc [Downloader] Cleaned up commands' docstrings, del -> delete 2017-06-18 01:50:41 +02:00
Twentysix
feffb56847 Fill out license info 2017-06-18 01:32:51 +02:00
Will
53810b2262 Added Downloader cog (#786) 2017-06-18 01:31:32 +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