Kwoth
616f01f8b2
Make sure broken youtube-dl didn't cache invalid data, closes #373
2022-07-30 10:29:33 +02:00
Kwoth
99c60459f8
Removed cmd source generator. Commands are no longer partial methods. Compilations should be slightly faster now. Updated packages and adapted drawing code to the new apis. There may be some bugs.
2022-07-18 04:33:50 +02:00
Kwoth
f41b1fb93c
Base for 4.3 work. Split Nadeko.Common into a separate project
2022-07-11 00:06:34 +02:00
Kwoth
dc846965ae
Fixed redis track cacher
2022-06-23 19:54:09 +02:00
Kwoth
210da263ad
Abstract away cache. 2 implementations: redis and memory
2022-06-23 13:07:45 +00:00
Kwoth
7b5145f116
NadekoBot Patronage system, Search commands improvements + fixes
2022-06-14 07:24:33 +00:00
Kwoth
b7d1fd1b47
Many IDisposable fixes. GlobalNadeko won't have file watchers for creds. Wallet simplified
2022-03-21 15:33:18 +01:00
Kwoth
e6e802b563
- Migrated to twitch helix api for stream notifications
...
- Added 2 new fields to creds.yml -> TwitchClientId and TwitchClientSecret
- Users now have to provide them in order to use twitch stream notifications as Twitch is shutting down old api on 18th of February 2022
- Possibly fixed some issues with streams randomly getting cleared
- Added an incomplete trovo stream notification provider
2022-02-15 17:03:31 +01:00
Kwoth
7ed1b13e85
- Re-added .qap / .queueautoplay
...
- Several strings and commands related to music have been changed
- Changed .ms / .movesong to .tm / .trackmove but kept old aliases
- Changed ~~song~~ -> rack throughout music module strings
- Updated CHANGELOG.md
2022-02-13 15:49:48 +01:00
Kwoth
eda38e64d1
Added many more braces for multiline if's, Improved .crypto command quite a bit and applied locale-specific format
2022-02-04 06:00:17 +01:00
Kwoth
ffa2c3f119
Updated editorconfig to (mostly?) require braces around if/else statements, and applied the new formatting rules
2022-02-02 01:44:45 +01:00
Kwoth
7ee51332b0
Some refactorings - Updated editorconfig, removed some unused variables and parameters, updated some old thorwaway variable code, some general cleanup
2022-02-01 13:51:07 +01:00
Kwoth
a402f33a4c
Cancel some delay tasks if they're not being used
2022-01-23 04:14:16 +01:00
Kwoth
9de75d9109
Using PeriodicTimer instead of threading.timer in some services
2022-01-10 17:19:51 +01:00
Kwoth
f07a855912
More common refactorings like renaming variables, removing empty statements and unused variables, etc
2022-01-09 16:46:08 +01:00
Kwoth
2ce3262d59
Fixed around 140 wrong namings and other refactorings which were marked as warnings
2022-01-08 11:51:41 +01:00
Kwoth
3aa6a54b6e
- Renamed CustomReaction model to NadekoExpression
...
- Used structured logging everywhere
2022-01-04 07:35:55 +01:00
Kwoth
ca9fa1b0ac
- Renamed Prefix to prefix
...
- Updated some command string keys which were using command name to use method names now
2022-01-02 16:52:39 +01:00
Kwoth
4b6af0e4ef
Fixed some crashes in response strings source generator, reorganized more submodules into their folders
2022-01-02 03:49:54 +01:00
Kwoth
9b4eb21321
Using pattern matching for nulls where applicable, discarded unused lambda parameters, cleaned up some classes. Unignored ServerLog commands which was mistakenly ignored due to a .gitignore rule
2022-01-01 08:44:51 +01:00
Kwoth
f81f9fadd3
Small refactor for ILogCommandService
2022-01-01 07:33:06 +01:00
Kwoth
25eeffa163
- Removed NadekoCommand and Aliases attribute from all commands
...
- All commands must be marked as partial
- Added [Cmd] Attribute to all commands
- Cmd Attribute comes from the source generator which adds [NadekoCommand] and [Aliases] Attribute to each command
- Should be updated in the future probably to be more performant and maybe add extra data to the commands
- Started reorganizing modules and submodules
2021-12-31 16:05:30 +01:00
Kwoth
82000c97a4
Applied codestyle to all .cs files
2021-12-29 06:07:16 +01:00
Kwoth
723447c7d4
- Updated editorconfig rules to hopefully look a bit nicer.
...
- Removed configureawait(false) from everywhere as it doesnt' do anything in a console app and just makes the code look ugly
- Started using .WhenAll extension instead of Task.WhenAll to make it look nicer when chaining methods
2021-12-28 21:14:40 +01:00
Kwoth
0acd2931eb
Possible fix for .smch
2021-12-28 10:57:58 +01:00
Kwoth
59f5056035
NadekoBot.Extensions should now be fully annotated with nullable reference types as well as many classes from NadekoBot.Common
2021-12-28 10:44:00 +01:00
Kwoth
d5fd6aae8e
- More code cleanup and codestyle updates
...
- Fixed some possible nullref exceptions
- Methods signatures now have up to 3 parameters before breakaing down each parameter in a separate line
- Method invocations have the same rule, except the first parameter will be in the same line as the invocation to prevent some ugliness when passing lambas as arguments
- Applied many more codestyles
- Extensions folder fully reformatted
2021-12-26 17:28:39 +01:00
Kwoth
b85ba177cd
Using declarations and other code reformats
2021-12-26 03:22:45 +01:00
Kwoth
d18f9429c6
Kotz's editorconfig styles slightly modified. Target typed new usage. Brackets in expressions used for clarity.
2021-12-26 02:52:09 +01:00
Kwoth
594a3b1f97
Removed some obsolete commands and strings
2021-12-23 20:58:39 +01:00
Kwoth
da849f7c7b
global using NadekoBot.Extensions
2021-12-23 08:04:00 +07:00
Kwoth
93b8bca018
Switch to discord.net 3.0.0
2021-12-23 08:02:23 +07:00
Kwoth
c66e491ce9
Implicit usings and more global usings
2021-12-21 02:36:47 +01:00
Kwoth
9223d78849
Removed redundant parenthesis
2021-12-20 03:54:30 +01:00
Kwoth
da2ee0c158
await usings and minor cleanup
2021-12-20 03:02:02 +01:00
Kwoth
1b2017024c
More target-typed new and redundant paranthesis cleanup
2021-12-20 00:33:11 +01:00
Kwoth
cd379fd308
vars and target-typed new
2021-12-20 00:15:39 +01:00
Kwoth
ee33313519
Global usings and file scoped namespaces
2021-12-19 05:14:11 +01:00
Alan Beatty
1c24f95efa
Replace RequireUserPemission
with UserPerm
2021-12-13 13:06:28 +00:00
Kwoth
3470762b30
woops, missed an extra bracket
2021-09-17 01:08:20 +02:00
Kwoth
619bee811d
Fixed most of the commands which used wrong error color for confirm messages
2021-09-16 23:09:17 +02:00
Kwoth
565c1132fa
Changed last few usages of old string based gettext. All strings now use new system. Needs testing
2021-09-06 21:34:53 +02:00
Kwoth
919bedeae6
Changed (almost) all responses to make them use the new system instead of raw strings
...
- Fixed many invalid string keys
2021-09-06 21:34:53 +02:00
Kwoth
4484732f5d
- Fixed counting parameters which have formats in response strings
...
- Almost finished porting localized string keys as methods
- Compiles
2021-09-06 21:34:53 +02:00
Kwoth
0115d35247
WIP: rework of localized strings, instead of generic LocStr, LocStr is now a struct which contains both the key, and the values which should be put into the value's placeholders. strs' properties are now methods which take values as arguments, and properties if they don't
2021-09-06 21:34:53 +02:00
Kwoth
9d375dccee
wip strings rework, experimenting, nothing works
2021-09-06 21:34:52 +02:00
Kwoth
70288f7670
Second iteration of source generated localized strings
...
- Strs renamed to strs
- Generic params will now default to object instead of string for convenient argument passing
- Many strings changed to use generated properties
2021-09-06 21:34:52 +02:00
Kwoth
5d9320941a
Added fixes from 1.9 branch:
...
- Custom reaction permission error fix
- Local tracks .lq fix after they're loaded from playlist
- Fixed some response strings
2021-09-06 21:34:52 +02:00
Kwoth
42d623b696
Replaced access to .Context with .ctx
2021-09-06 21:34:52 +02:00
Kwoth
5e4754fa40
- Reworked embed builder
...
- Use IEmbedBuilderService to create embed builders
- Wrapped embed builder and using IEmbedBuilder
2021-09-06 21:34:51 +02:00