public nadeko will only have ~boobs and ~butts out of all nsfw commands on next restart
This commit is contained in:
		@@ -19,6 +19,7 @@ namespace NadekoBot.Modules.NSFW
 | 
				
			|||||||
    [NadekoModule("NSFW", "~")]
 | 
					    [NadekoModule("NSFW", "~")]
 | 
				
			||||||
    public class NSFW : DiscordModule
 | 
					    public class NSFW : DiscordModule
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 | 
					#if !GLOBAL_NADEKO
 | 
				
			||||||
        private static ConcurrentDictionary<ulong, Timer> AutoHentaiTimers { get; } = new ConcurrentDictionary<ulong, Timer>();
 | 
					        private static ConcurrentDictionary<ulong, Timer> AutoHentaiTimers { get; } = new ConcurrentDictionary<ulong, Timer>();
 | 
				
			||||||
        private static ConcurrentHashSet<ulong> _hentaiBombBlacklist { get; } = new ConcurrentHashSet<ulong>();
 | 
					        private static ConcurrentHashSet<ulong> _hentaiBombBlacklist { get; } = new ConcurrentHashSet<ulong>();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -189,7 +190,7 @@ namespace NadekoBot.Modules.NSFW
 | 
				
			|||||||
                    .WithFooter(efb => efb.WithText("e621")))
 | 
					                    .WithFooter(efb => efb.WithText("e621")))
 | 
				
			||||||
                    .ConfigureAwait(false);
 | 
					                    .ConfigureAwait(false);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
        [NadekoCommand, Usage, Description, Aliases]
 | 
					        [NadekoCommand, Usage, Description, Aliases]
 | 
				
			||||||
        public async Task Cp()
 | 
					        public async Task Cp()
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
@@ -204,7 +205,7 @@ namespace NadekoBot.Modules.NSFW
 | 
				
			|||||||
                JToken obj;
 | 
					                JToken obj;
 | 
				
			||||||
                using (var http = new HttpClient())
 | 
					                using (var http = new HttpClient())
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    obj = JArray.Parse(await http.GetStringAsync($"http://api.oboobs.ru/boobs/{ new NadekoRandom().Next(0, 10229) }").ConfigureAwait(false))[0];
 | 
					                    obj = JArray.Parse(await http.GetStringAsync($"http://api.oboobs.ru/boobs/{ new NadekoRandom().Next(0, 10330) }").ConfigureAwait(false))[0];
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                await Context.Channel.SendMessageAsync($"http://media.oboobs.ru/{ obj["preview"].ToString() }").ConfigureAwait(false);
 | 
					                await Context.Channel.SendMessageAsync($"http://media.oboobs.ru/{ obj["preview"].ToString() }").ConfigureAwait(false);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
@@ -222,7 +223,7 @@ namespace NadekoBot.Modules.NSFW
 | 
				
			|||||||
                JToken obj;
 | 
					                JToken obj;
 | 
				
			||||||
                using (var http = new HttpClient())
 | 
					                using (var http = new HttpClient())
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    obj = JArray.Parse(await http.GetStringAsync($"http://api.obutts.ru/butts/{ new NadekoRandom().Next(0, 4222) }").ConfigureAwait(false))[0];
 | 
					                    obj = JArray.Parse(await http.GetStringAsync($"http://api.obutts.ru/butts/{ new NadekoRandom().Next(0, 4335) }").ConfigureAwait(false))[0];
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                await Context.Channel.SendMessageAsync($"http://media.obutts.ru/{ obj["preview"].ToString() }").ConfigureAwait(false);
 | 
					                await Context.Channel.SendMessageAsync($"http://media.obutts.ru/{ obj["preview"].ToString() }").ConfigureAwait(false);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
@@ -231,7 +232,7 @@ namespace NadekoBot.Modules.NSFW
 | 
				
			|||||||
                await Context.Channel.SendErrorAsync(ex.Message).ConfigureAwait(false);
 | 
					                await Context.Channel.SendErrorAsync(ex.Message).ConfigureAwait(false);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					#if !GLOBAL_NADEKO
 | 
				
			||||||
        public static Task<string> GetDanbooruImageLink(string tag) => Task.Run(async () =>
 | 
					        public static Task<string> GetDanbooruImageLink(string tag) => Task.Run(async () =>
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            try
 | 
					            try
 | 
				
			||||||
@@ -289,4 +290,5 @@ namespace NadekoBot.Modules.NSFW
 | 
				
			|||||||
        public static Task<string> GetRule34ImageLink(string tag) =>
 | 
					        public static Task<string> GetRule34ImageLink(string tag) =>
 | 
				
			||||||
            Searches.Searches.InternalDapiSearch(tag, Searches.Searches.DapiSearchType.Rule34);
 | 
					            Searches.Searches.InternalDapiSearch(tag, Searches.Searches.DapiSearchType.Rule34);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user