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
0474551e2f
Award no longer misinterprets IDs
2021-12-13 13:11:56 +00:00
Kwoth
02eb6e172b
added slots.currencyFontColor to gambling.yml
2021-12-09 20:54:26 +01:00
Kwoth
cb7c5e48fd
Fixed gambling vote reward getting overwritten and reset to 100 every time
2021-12-05 08:20:30 +01:00
Kwoth
732b5dfeed
Merge branch 'v3' of https://gitlab.com/kwoth/nadekobot into v3
2021-11-21 03:01:18 +01:00
Kwoth
d4dcdc761a
.economy should not overflow so easily anymore, and big numbers look nicer
2021-11-21 03:01:04 +01:00
Alan Beatty
4b29b3a239
Change award and take to not use ShmartNumber
2021-11-21 01:37:30 +00:00
Kwoth
f4fa298866
Merge branch 'plantpatch' into 'v3'
...
ShmartNumber for .plant
See merge request Kwoth/nadekobot!193
2021-11-21 01:09:14 +00:00
Kwoth
b2fafc964f
Merge branch 'v3' into 'v3'
...
Move plant/pick where they belong
See merge request Kwoth/nadekobot!178
2021-11-21 01:08:46 +00:00
Kwoth
d090aa23ee
Slots redesign nad images moved to images.yml
2021-11-03 14:22:51 +00:00
Yuno Gasai
717543f6c2
Move plant/pick where they belong
2021-10-19 09:28:55 -04:00
Kwoth
1af75fd813
Created VotesApi project nad re-worked vote rewards handling
2021-10-15 22:06:30 +00:00
Kwoth
ff95b3d00f
- .streamsclear re-added. It will remove all followed streams on the server.
...
- .gifts now have 3 new ✂️ Haircut 🧻 ToiletPaper and 🥀 WiltedRose which **reduce** waifu's value
- Added a new multiplier (waifu.multi.negative_gift_effect default 0.5, changeable via .config gambling or data/gambling.yml)
2021-09-30 08:53:15 +02:00
Kwoth
a562a571e2
- .shopadd will now ignore negative price input
...
- Make sure bot has manage roles permission for .xprr
- Small cleanup
2021-09-22 23:07:23 +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
2a1f45819d
.waifugift pagination fixed - maximum number of pages properly scales with the number of items
2021-09-16 19:09:19 +02:00
Kwoth
d028e23bc1
.timely will now correctly use Ok color
2021-09-12 01:22:13 +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
b84f40def6
- Initial work on Dockerfile
...
- Updated README.md with more information
- Added some todos
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
Kwoth
5b4daa9dd3
All .AddField calls no longer use builder
...
- Cleaned up convertlist and listserver embeds slightly
2021-09-06 21:34:50 +02:00
Kwoth
cbecd823c1
Cleaned up embedbuilder calls to use parameters instead of footer builder
2021-09-06 21:34:50 +02:00
Kwoth
0fc5f540d8
- Added Cloneable deep clone source generator nuget package
...
- Configs are no cloned using generated clone, not by serializing/deserializing
- Arrays/Lists (collections in geneeral) are still not cloned properly
- Removed GetRawData from config as it is no longer needed, new clone is very fast
- Added ICloneable<T> which all configs implement
- Cleaned up config classes/code
2021-09-06 21:34:50 +02:00
Kwoth
873eaa290e
- fixed remote coordinator being initialized when local one is supposed to be used
...
- Fixed services loading multiple times
- cleaned up service adding with scrutor
- INService moved from some interfaces to concrete implementation
2021-09-06 21:34:49 +02:00
Kwoth
3c82c1f919
- Started cleanup of command handler
...
- Removed IUnloadableService
- Started removing INService (removed it from services which implement behavior interfaces) - wip
- Added scrutor for better service registration - wip
2021-09-06 21:34:49 +02:00
Kwoth
656db01aca
- removed unused attributes on commands
...
- Removed some commented out files
2021-09-06 21:34:48 +02:00
Kwoth
49f9b96755
One of the last major cleanups. All NadekoBot.Core.* namespaces renamed to NadekoBot.*
2021-09-06 21:34:48 +02:00
Kwoth
c86bf6f300
- NadekoBot class renamed to Bot
...
- Implemented grpc based coordinator. Supports restarting, killing single or all shards, as well as getting current shard statuses. (Adaptation of the one used by the public bot)
- Coord is setup via coord.yml file
- Methods from SelfService which deal with shard/bot restart etc have been moved to ICoordinator (with GrpcRemoteCoordinator being the default implementation atm)
- Vastly simplified NadekoBot/Program.cs
2021-09-06 21:34:46 +02:00
Kwoth
d8c7cdc7f4
Changed all == null to is null and all !(* == null) to * is not null
2021-09-06 21:34:44 +02:00
Kwoth
d42705087e
- Database namespace is now NadekoBot.Db
...
- Db related code is now in src/NadekoBot/Db
- Finished major part of the db refactor, but many optimizations are left to be made
2021-09-06 21:34:43 +02:00
Kwoth
c127dcd1e3
UnitOfWork compltely removed. GetDbContext now returns a NadekoContext. Changed every access to contect via uow._context to uow
2021-09-06 21:34:42 +02:00
Kwoth
51a4499809
DiscordUser repository removed
2021-09-06 21:34:41 +02:00
Kwoth
f34951c81c
Removed waifu repository
2021-09-06 21:34:41 +02:00
Kwoth
15dac7e3ed
Massive cleanup
...
- Removed GuildConfigs repository, moved to extensions
- Moved StreamSettings extension to GuildConfig extensions
- namespace NadekoBot.Core has been simplified to NadekoBot in many places (more to come)
- Replaced some raw delete queries with simple linqtodb queries
2021-09-06 21:34:41 +02:00
Kwoth
a3fa8224c4
Removed plantedcurrency repository
2021-09-06 21:34:39 +02:00
Kwoth
91ecf9ca41
Restructured folders and project names, ci should be fixed
2021-09-06 21:29:51 +02:00