Removed some obsolete commands and strings

This commit is contained in:
Kwoth
2021-12-23 20:58:39 +01:00
parent 856dcd048a
commit 594a3b1f97
10 changed files with 36 additions and 119 deletions

View File

@@ -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)
{

View File

@@ -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);
}
}

View File

@@ -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()

View File

@@ -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))));
}
}
}