Commit Graph
81 Commits
Author SHA1 Message Date
Ev-1 28208da262 Added votable decorator, reduced code duplication
Votable decorator added, makes it possible to make a command accessible through voting. Can be overwridden.
2020-09-14 17:05:07 +02:00
Ev-1 7a32e04820 Add queue duration, simplify enqueue and play
Remove redundant code in enqueue and the play command. Add queue duration to queue command.
2020-09-14 14:20:46 +02:00
Ev-1 d858bb4175 bugfix
fixed default arg for settingsmanager.
2020-09-12 21:20:51 +02:00
Ev-1 35cc8fdb1f Store nodes in settings, edded error for full voice channels.
Edit settingsmanager to allow storing settings that are not guild specific.
2020-09-12 19:55:14 +02:00
Ev-1 acbad1a61a Moved decorators added node change command 2020-09-12 18:16:51 +02:00
Ev-1 80d1cdc184 Beginning of large restructuring of music cog.
Restructures the music cog into a module

Renames cogs to cogmanager
Fixes subcommand help invocation
More to assignment expressions in settings
2020-09-11 16:46:46 +02:00
Ev-1 fc5bf719fb Added errors for wrong voice and text channels 2020-09-10 21:16:13 +02:00
Roxedus 898ea66536 Crude custom error setup 2020-09-10 19:18:17 +02:00
Ev-1 274ed02aa7 isort >:( 2020-09-10 17:31:14 +02:00
Ev-1 ee9ed63ba8 Stupid flake 8 >:( 2020-09-10 17:28:26 +02:00
Ev-1 2cb03065a3 Move to decorators for command requirements
Cleans up music.py quite a bit, makes it easier to define the properties you want when creating a new command.

Some other small changes to reduce code duplication.
2020-09-10 16:51:00 +02:00
Roxedus d33bf1f723 Fix linter errors 2020-08-27 20:33:27 +02:00
Roxedus f5b6a17d9d Rename module 2020-06-14 17:47:21 +02:00
Roxedus 83611d9f1a Update requirements, adapt changes 2020-06-14 15:41:07 +02:00
Roxedus 3b7038954d isort and flake fixes 2020-06-14 15:30:56 +02:00
Even 4061045421 Update to reflect changes in lavalink.py 2020-02-03 00:43:01 +01:00
Roxedus f05825087a Bump version 2020-01-22 16:22:31 +01:00
Even c1eeb2425b Fixes #19 and #10
Check that only valid locales can be set through commands. Use default locale if the current locale is invalid.
2020-01-20 21:57:54 +01:00
Even a1d4f81f59 Code cleanup 2019-10-20 01:32:51 +02:00
Even bf4d20990a Initial selector implementation. Requires d.py 1.3 2019-10-02 22:46:36 +02:00
roxedus ab214d7428 Flake8 compliance 2019-07-31 19:07:04 +02:00
roxedus 3d251d4633 Added thumbnail-support for more services 2019-07-27 06:03:07 +02:00
Roxedus cc4bf974c1 Feature/new docker (#17)
* Run arguments

Introduced self.bot.datafolder

* Improved container

Utilizing the new run-args

* Better tagging

* Consistency
2019-07-07 21:41:21 +02:00
Roxedus f898dd7582 PEP8
A whole FUCK TON of PEP8 improvements
2019-07-03 19:26:48 +02:00
Roxedus d41ca00277 Introduced bot version 2019-07-01 14:19:34 +02:00
si0972 63061d4876 Logger tweaks
Set encoding, decreased logfile max-size
2019-06-03 20:35:22 +02:00
Ev-1 a87e3e0140 Am idiot, move on. 2019-04-12 01:12:09 +02:00
Ev-1 f0e9ef1336 mkdir → mkdirs. Allow for sub folders 2019-04-12 00:58:11 +02:00
Ev-1 b2e6f10bdf Logging (#4)
* Logging!

Added logging structure, and example in music coc

* Improves logger a smidge

Now custom paths \o/

* More thinkering
2019-04-12 00:24:02 +02:00
Ev-1 07bc4582db Not show help on check failure. 2019-03-22 00:52:30 +01:00
Ev-1 57ca137b91 switch to pyyaml's safeLoader 2019-03-22 00:06:07 +01:00
Roxedus dc4838af07 Better async performance?
and some pep8
2019-03-20 17:21:24 +01:00
Roxedus f6f0301cf3 from_data to from_dict
https://github.com/Rapptz/discord.py/commit/73aca4d4d36e728e906fb6c6bccaaf7060c1b83d
2019-03-20 16:38:58 +01:00
Ev-1 9ff61f8d89 Lots of minor fixes. Added fallback for missing help translation
- Command help fallback.
- fixed arguments appearing as a part of the command in help messages.
- Help page indicator for cogs fixed.
- Support for more than just prefix in page indicator.
- Fixed wrong user in user showing when displaying userqueue.
- Show prefix in help message if mention was used.
- Fixed mention as prefix not working in DMs.
2019-03-04 20:06:11 +01:00
Ev-1 27fa140dd5 Custom localized help formatting 2019-03-03 14:12:15 +01:00
Ev-1 6f6d751c83 Localized per guild aliases for subcommands 2019-02-22 17:11:19 +01:00
Ev-1 4a374bcd2a Aliases for subcommands started 2019-02-21 14:48:19 +01:00
Ev-1 ad407d63ba localizer in context, locale as yaml instead of json. 2019-02-17 12:12:05 +01:00
Ev-1 963f0bf5f5 Locale specific command aliases 2019-02-17 12:11:18 +01:00
Ev-1 51e49d3109 Better time formatting, særskrivingsfeil in nn_no and nb_no 2019-02-10 14:32:43 +01:00
Ev-1 a0db7558e4 Max track length settings.
Supports dynamic and static max length.
2019-02-09 13:52:32 +01:00
Ev-1 0c50922618 Implemented custom DJ roles 2019-02-07 23:44:11 +01:00
Ev-1 19d9339af4 Update guild name in set() 2019-02-03 20:27:46 +01:00
Ev-1 553c71ebeb Store guild settings as yaml instead of json 2019-02-03 20:23:44 +01:00
Ev-1 2cc4d9771a Use yaml for settings. 2019-02-03 19:40:49 +01:00
Ev-1 e8225d42f0 More guild settings. 2019-02-03 14:06:40 +01:00
Ev-1 7b2941ae2b Settings now has a single set/get instead of one set/get per setting. 2019-02-02 14:17:51 +01:00
Ev-1 0cb298cd8b Queue translations 2019-02-01 11:47:23 +01:00
unknown 621e6ce74f Merge branch 'dev' into feature/translations 2019-01-28 09:25:51 +01:00
unknown b101faca5f Created a localizer wrapper
Added prefix as an optional argument to the format methods of localizer
Added the option to specify kvpairs for formating, all kvpairs has to
have a _ as prefix
Updated music.py to use the localizer wrapper
2019-01-28 01:37:08 +01:00