mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
59 lines
2.3 KiB
C#
59 lines
2.3 KiB
C#
using Discord.Commands;
|
|
using NadekoBot.Modules.Searches.Services;
|
|
using NadekoBot.Modules;
|
|
|
|
namespace NadekoBot.Modules.Searches
|
|
{
|
|
public partial class Searches
|
|
{
|
|
// [Group]
|
|
// public class YtTrackCommands : NadekoSubmodule<YtTrackService>
|
|
// {
|
|
// ;
|
|
// [RequireContext(ContextType.Guild)]
|
|
// public async Task YtFollow(string ytChannelId, [Leftover] string uploadMessage = null)
|
|
// {
|
|
// var succ = await _service.ToggleChannelFollowAsync(Context.Guild.Id, Context.Channel.Id, ytChannelId, uploadMessage);
|
|
// if(succ)
|
|
// {
|
|
// await ReplyConfirmLocalizedAsync("yt_follow_added").ConfigureAwait(false);
|
|
// }
|
|
// else
|
|
// {
|
|
// await ReplyConfirmLocalizedAsync("yt_follow_fail").ConfigureAwait(false);
|
|
// }
|
|
// }
|
|
//
|
|
// [NadekoCommand, Usage, Description, Aliases]
|
|
// [RequireContext(ContextType.Guild)]
|
|
// public async Task YtTrackRm(int index)
|
|
// {
|
|
// //var succ = await _service.ToggleChannelTrackingAsync(Context.Guild.Id, Context.Channel.Id, ytChannelId, uploadMessage);
|
|
// //if (succ)
|
|
// //{
|
|
// // await ReplyConfirmLocalizedAsync("yt_track_added").ConfigureAwait(false);
|
|
// //}
|
|
// //else
|
|
// //{
|
|
// // await ReplyConfirmLocalizedAsync("yt_track_fail").ConfigureAwait(false);
|
|
// //}
|
|
// }
|
|
//
|
|
// [NadekoCommand, Usage, Description, Aliases]
|
|
// [RequireContext(ContextType.Guild)]
|
|
// public async Task YtTrackList()
|
|
// {
|
|
// //var succ = await _service.ToggleChannelTrackingAsync(Context.Guild.Id, Context.Channel.Id, ytChannelId, uploadMessage);
|
|
// //if (succ)
|
|
// //{
|
|
// // await ReplyConfirmLocalizedAsync("yt_track_added").ConfigureAwait(false);
|
|
// //}
|
|
// //else
|
|
// //{
|
|
// // await ReplyConfirmLocalizedAsync("yt_track_fail").ConfigureAwait(false);
|
|
// //}
|
|
// }
|
|
// }
|
|
}
|
|
}
|