prettier jokes
This commit is contained in:
		@@ -317,13 +317,12 @@ $@"🌍 **Weather for** 【{obj["target"]}】
 | 
				
			|||||||
                    .Description("Shows a random quote.")
 | 
					                    .Description("Shows a random quote.")
 | 
				
			||||||
                    .Do(async e =>
 | 
					                    .Do(async e =>
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        await
 | 
					                        var quote = NadekoBot.Config.Quotes[rng.Next(0, NadekoBot.Config.Quotes.Count)].ToString();
 | 
				
			||||||
                            e.Channel.SendMessage(
 | 
					                        await e.Channel.SendMessage(quote);
 | 
				
			||||||
                                NadekoBot.Config.Quotes[new Random().Next(0, NadekoBot.Config.Quotes.Count)].ToString());
 | 
					 | 
				
			||||||
                    });
 | 
					                    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                cgb.CreateCommand(Prefix + "catfact")
 | 
					                cgb.CreateCommand(Prefix + "catfact")
 | 
				
			||||||
                    .Description("Shows a random catfact from http://catfacts-api.appspot.com/api/facts")
 | 
					                    .Description("Shows a random catfact from <http://catfacts-api.appspot.com/api/facts>")
 | 
				
			||||||
                    .Do(async e =>
 | 
					                    .Do(async e =>
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        var response = await SearchHelper.GetResponseStringAsync("http://catfacts-api.appspot.com/api/facts");
 | 
					                        var response = await SearchHelper.GetResponseStringAsync("http://catfacts-api.appspot.com/api/facts");
 | 
				
			||||||
@@ -338,7 +337,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】
 | 
				
			|||||||
                    .Do(async e =>
 | 
					                    .Do(async e =>
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        var response = await SearchHelper.GetResponseStringAsync("http://api.yomomma.info/");
 | 
					                        var response = await SearchHelper.GetResponseStringAsync("http://api.yomomma.info/");
 | 
				
			||||||
                        await e.Channel.SendMessage(JObject.Parse(response)["joke"].ToString());
 | 
					                        await e.Channel.SendMessage("`" + JObject.Parse(response)["joke"].ToString() + "` 😆");
 | 
				
			||||||
                    });
 | 
					                    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                cgb.CreateCommand(Prefix + "randjoke")
 | 
					                cgb.CreateCommand(Prefix + "randjoke")
 | 
				
			||||||
@@ -347,7 +346,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】
 | 
				
			|||||||
                    .Do(async e =>
 | 
					                    .Do(async e =>
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        var response = await SearchHelper.GetResponseStringAsync("http://tambal.azurewebsites.net/joke/random");
 | 
					                        var response = await SearchHelper.GetResponseStringAsync("http://tambal.azurewebsites.net/joke/random");
 | 
				
			||||||
                        await e.Channel.SendMessage(JObject.Parse(response)["joke"].ToString());
 | 
					                        await e.Channel.SendMessage("`" + JObject.Parse(response)["joke"].ToString() + "` 😆");
 | 
				
			||||||
                    });
 | 
					                    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                cgb.CreateCommand(Prefix + "chucknorris")
 | 
					                cgb.CreateCommand(Prefix + "chucknorris")
 | 
				
			||||||
@@ -356,7 +355,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】
 | 
				
			|||||||
                    .Do(async e =>
 | 
					                    .Do(async e =>
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        var response = await SearchHelper.GetResponseStringAsync("http://api.icndb.com/jokes/random/");
 | 
					                        var response = await SearchHelper.GetResponseStringAsync("http://api.icndb.com/jokes/random/");
 | 
				
			||||||
                        await e.Channel.SendMessage(JObject.Parse(response)["value"]["joke"].ToString());
 | 
					                        await e.Channel.SendMessage("`" + JObject.Parse(response)["value"]["joke"].ToString() + "` 😆");
 | 
				
			||||||
                    });
 | 
					                    });
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user