mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
Merge branch 'v4' into v5
This commit is contained in:
32
CHANGELOG.md
32
CHANGELOG.md
@@ -2,6 +2,38 @@
|
|||||||
|
|
||||||
Experimental changelog. Mostly based on [keepachangelog](https://keepachangelog.com/en/1.0.0/) except date format. a-c-f-r-o
|
Experimental changelog. Mostly based on [keepachangelog](https://keepachangelog.com/en/1.0.0/) except date format. a-c-f-r-o
|
||||||
|
|
||||||
|
## [4.3.11] - 21.01.2023
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Added `.doas` Bot owner only command
|
||||||
|
- Added `.stickeradd` command
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- `.waifuinfo` optimized
|
||||||
|
- You can now specify an optional custom message in `.feed` and `.yun` which will be posted along with an update
|
||||||
|
- Greet/bye messages will now get disabled if they're set to a deleted/unknown channel
|
||||||
|
- Updated response strings
|
||||||
|
- `.translate` now supports many more languages
|
||||||
|
- `.translangs` prettier output
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Added logging for thread events
|
||||||
|
- Fixed a bug for `.quotedeleteauthor` causing the executing user to delete own messages
|
||||||
|
- Fixed TimeOut punishment not alklowing duration
|
||||||
|
- Fixed a nullref in streamrole service
|
||||||
|
- Fixed some potential causes for ratelimit due to default message retry settings
|
||||||
|
- Fixed a patron rewards bug caused by monthly donation checking not accounting for year increase
|
||||||
|
- Fixed a patron rewards bug for users who connected the same discord account with multiple patreon accounts
|
||||||
|
- `.deletecurrency` will now also reset banked currency
|
||||||
|
- Fixed DMHelpText reply
|
||||||
|
- `.h` command show now properly show both channel and server user permission requirements
|
||||||
|
- Many fixes and improvements to medusa system
|
||||||
|
- Fixed trivia --nohint
|
||||||
|
- `.joinrace` will no longer fail if the user isn't in the database yet
|
||||||
|
|
||||||
## [4.3.10] - 10.11.2022
|
## [4.3.10] - 10.11.2022
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
7
src/Nadeko.Medusa/Attributes/bot_owner_onlyAttribute.cs
Normal file
7
src/Nadeko.Medusa/Attributes/bot_owner_onlyAttribute.cs
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
namespace Nadeko.Snake;
|
||||||
|
|
||||||
|
[AttributeUsage(AttributeTargets.Method)]
|
||||||
|
public sealed class bot_owner_onlyAttribute : MedusaPermAttribute
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
@@ -434,6 +434,10 @@ public sealed class MedusaLoaderService : IMedusaLoaderService, IReadyExecutor,
|
|||||||
else if (bp.ChannelPerm is { } cp)
|
else if (bp.ChannelPerm is { } cp)
|
||||||
cb.AddPrecondition(new BotPermAttribute(cp));
|
cb.AddPrecondition(new BotPermAttribute(cp));
|
||||||
}
|
}
|
||||||
|
else if (ubp is bot_owner_onlyAttribute)
|
||||||
|
{
|
||||||
|
cb.AddPrecondition(new OwnerOnlyAttribute());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cb.WithPriority(cmd.Priority);
|
cb.WithPriority(cmd.Priority);
|
||||||
|
@@ -88,6 +88,9 @@ public sealed class CurrencyService : ICurrencyService, INService
|
|||||||
long amount,
|
long amount,
|
||||||
TxData txData)
|
TxData txData)
|
||||||
{
|
{
|
||||||
|
if (amount == 0)
|
||||||
|
return true;
|
||||||
|
|
||||||
var wallet = await GetWalletAsync(userId);
|
var wallet = await GetWalletAsync(userId);
|
||||||
var result = await wallet.Take(amount, txData);
|
var result = await wallet.Take(amount, txData);
|
||||||
if(result)
|
if(result)
|
||||||
|
@@ -7,7 +7,7 @@ namespace NadekoBot.Services;
|
|||||||
|
|
||||||
public sealed class StatsService : IStatsService, IReadyExecutor, INService
|
public sealed class StatsService : IStatsService, IReadyExecutor, INService
|
||||||
{
|
{
|
||||||
public const string BOT_VERSION = "4.3.10";
|
public const string BOT_VERSION = "4.3.11";
|
||||||
|
|
||||||
public string Author
|
public string Author
|
||||||
=> "Kwoth#2452";
|
=> "Kwoth#2452";
|
||||||
|
Reference in New Issue
Block a user