prettier jokes
This commit is contained in:
parent
ca614f6ff7
commit
55ac8fe7e5
@ -317,13 +317,12 @@ $@"🌍 **Weather for** 【{obj["target"]}】
|
||||
.Description("Shows a random quote.")
|
||||
.Do(async e =>
|
||||
{
|
||||
await
|
||||
e.Channel.SendMessage(
|
||||
NadekoBot.Config.Quotes[new Random().Next(0, NadekoBot.Config.Quotes.Count)].ToString());
|
||||
var quote = NadekoBot.Config.Quotes[rng.Next(0, NadekoBot.Config.Quotes.Count)].ToString();
|
||||
await e.Channel.SendMessage(quote);
|
||||
});
|
||||
|
||||
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 =>
|
||||
{
|
||||
var response = await SearchHelper.GetResponseStringAsync("http://catfacts-api.appspot.com/api/facts");
|
||||
@ -338,7 +337,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】
|
||||
.Do(async e =>
|
||||
{
|
||||
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")
|
||||
@ -347,7 +346,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】
|
||||
.Do(async e =>
|
||||
{
|
||||
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")
|
||||
@ -356,7 +355,7 @@ $@"🌍 **Weather for** 【{obj["target"]}】
|
||||
.Do(async e =>
|
||||
{
|
||||
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() + "` 😆");
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user