mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-11-04 08:34:27 -05:00
Removed some obsolete commands and strings
This commit is contained in:
@@ -109,21 +109,6 @@ public class CustomReactions : NadekoModule<CustomReactionsService>
|
||||
All
|
||||
}
|
||||
|
||||
[NadekoCommand, Aliases]
|
||||
[Priority(0)]
|
||||
public async Task ListCustReact(All _)
|
||||
{
|
||||
await ReplyPendingLocalizedAsync(strs.obsolete_use(Format.Code($"{Prefix}crsexport")));
|
||||
await CrsExport();
|
||||
}
|
||||
|
||||
[NadekoCommand, Aliases]
|
||||
public async Task ListCustReactG(int page = 1)
|
||||
{
|
||||
await ReplyPendingLocalizedAsync(strs.obsolete_use(Format.Code($"{Prefix}crsexport")));
|
||||
await CrsExport();
|
||||
}
|
||||
|
||||
[NadekoCommand, Aliases]
|
||||
public async Task ShowCustReact(kwum id)
|
||||
{
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
namespace NadekoBot.Modules.Gambling;
|
||||
using Discord.Interactions;
|
||||
|
||||
public class TestGamblingService
|
||||
namespace NadekoBot.Modules.Gambling;
|
||||
|
||||
public class TestGamblingService : InteractionModuleBase
|
||||
{
|
||||
|
||||
[SlashCommand("test", "uwu")]
|
||||
public async Task Test(string input1, int input2)
|
||||
{
|
||||
await RespondAsync("Bravo " + input1 + input2);
|
||||
}
|
||||
}
|
||||
@@ -499,14 +499,6 @@ public sealed partial class Music : NadekoModule<IMusicService>
|
||||
await ReplyConfirmLocalizedAsync(strs.repeating_track);
|
||||
}
|
||||
|
||||
[NadekoCommand, Aliases]
|
||||
[RequireContext(ContextType.Guild)]
|
||||
public async Task ReptCurSong()
|
||||
{
|
||||
await ReplyPendingLocalizedAsync(strs.obsolete_use($"`{Prefix}qrp song`"));
|
||||
await QueueRepeat(InputRepeatType.Song);
|
||||
}
|
||||
|
||||
[NadekoCommand, Aliases]
|
||||
[RequireContext(ContextType.Guild)]
|
||||
public async Task Pause()
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
using NadekoBot.Modules.Utility.Services;
|
||||
|
||||
namespace NadekoBot.Modules.Utility;
|
||||
|
||||
public partial class Utility
|
||||
{
|
||||
[Group]
|
||||
public class PatreonCommands : NadekoSubmodule<PatreonRewardsService>
|
||||
{
|
||||
private readonly IBotCredentials _creds;
|
||||
|
||||
public PatreonCommands(IBotCredentials creds)
|
||||
{
|
||||
_creds = creds;
|
||||
}
|
||||
|
||||
[NadekoCommand, Aliases]
|
||||
[RequireContext(ContextType.DM)]
|
||||
public async Task ClaimPatreonRewards()
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(_creds.Patreon.AccessToken))
|
||||
{
|
||||
Log.Warning("In order to use patreon reward commands, " +
|
||||
"you need to specify CampaignId and AccessToken in creds.yml");
|
||||
return;
|
||||
}
|
||||
|
||||
if (DateTime.UtcNow.Day < 5)
|
||||
{
|
||||
await ReplyErrorLocalizedAsync(strs.clpa_too_early).ConfigureAwait(false);
|
||||
return;
|
||||
}
|
||||
|
||||
var rem = _service.Interval - (DateTime.UtcNow - _service.LastUpdate);
|
||||
var helpcmd = Format.Code(Prefix + "donate");
|
||||
await ctx.Channel.EmbedAsync(_eb.Create().WithOkColor()
|
||||
.WithDescription(GetText(strs.clpa_obsolete))
|
||||
.AddField(GetText(strs.clpa_fail_already_title), GetText(strs.clpa_fail_already))
|
||||
.AddField(GetText(strs.clpa_fail_wait_title), GetText(strs.clpa_fail_wait))
|
||||
.AddField(GetText(strs.clpa_fail_conn_title), GetText(strs.clpa_fail_conn))
|
||||
.AddField(GetText(strs.clpa_fail_sup_title), GetText(strs.clpa_fail_sup(helpcmd)))
|
||||
.WithFooter(GetText(strs.clpa_next_update(rem))));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user