mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 09:48:26 -04:00
- Added a simple bank system. Users can deposit, withdraw and check the balance of their currency in the bank.
- Users can't check other user's bank balances. - Added a button on a .$ command which, when clicked, sends you a message with your bank balance that only you can see. - Updated pagination, it now uses buttons instead of reactions - using .h <command group> (atm only .bank is a proper group) will list commands with their descriptions in that group
This commit is contained in:
@@ -5,6 +5,20 @@ namespace NadekoBot;
|
||||
|
||||
public static class MedusaExtensions
|
||||
{
|
||||
// public static Task<IUserMessage> EmbedAsync(this IMessageChannel ch,
|
||||
// IEmbedBuilder embed,
|
||||
// string msg = "",
|
||||
// MessageComponent? components = null)
|
||||
// {
|
||||
// return ch.SendMessageAsync(msg,
|
||||
// embed: embed.Build(),
|
||||
// components: components,
|
||||
// options: new()
|
||||
// {
|
||||
// RetryMode = RetryMode.AlwaysRetry
|
||||
// });
|
||||
// }
|
||||
|
||||
public static Task<IUserMessage> EmbedAsync(this IMessageChannel ch,
|
||||
IEmbedBuilder embed,
|
||||
string msg = "",
|
||||
@@ -37,7 +51,7 @@ public static class MedusaExtensions
|
||||
public static Task<IUserMessage> SendErrorAsync(this AnyContext ctx, string msg)
|
||||
=> ctx.Channel.SendErrorAsync(ctx, msg);
|
||||
|
||||
// localized
|
||||
// reaction responses
|
||||
public static Task ConfirmAsync(this AnyContext ctx)
|
||||
=> ctx.Message.AddReactionAsync(new Emoji("✅"));
|
||||
|
||||
@@ -50,6 +64,7 @@ public static class MedusaExtensions
|
||||
public static Task WaitAsync(this AnyContext ctx)
|
||||
=> ctx.Message.AddReactionAsync(new Emoji("🤔"));
|
||||
|
||||
// localized
|
||||
public static Task<IUserMessage> ErrorLocalizedAsync(this AnyContext ctx, string key, params object[]? args)
|
||||
=> ctx.SendErrorAsync(ctx.GetText(key));
|
||||
|
||||
|
Reference in New Issue
Block a user