Show green color with OK embed responses

This commit is contained in:
Kwoth 2016-11-30 02:28:51 +01:00
parent fff834f9db
commit 2099a0266a
4 changed files with 11 additions and 3 deletions

View File

@ -1,4 +1,5 @@
using Discord; using Discord;
using Discord.API;
using Discord.Commands; using Discord.Commands;
using NadekoBot.Attributes; using NadekoBot.Attributes;
using NadekoBot.Extensions; using NadekoBot.Extensions;
@ -63,7 +64,8 @@ namespace NadekoBot.Modules.Searches
Name = "Genres", Name = "Genres",
Value = String.Join(", ", animeData.Genres) Value = String.Join(", ", animeData.Genres)
} }
} },
Color = NadekoBot.OkColor
}; };
await channel.EmbedAsync(embed).ConfigureAwait(false); await channel.EmbedAsync(embed).ConfigureAwait(false);
} }
@ -104,7 +106,8 @@ namespace NadekoBot.Modules.Searches
Name = "Genres", Name = "Genres",
Value = String.Join(", ", animeData.Genres) Value = String.Join(", ", animeData.Genres)
} }
} },
Color = NadekoBot.OkColor
}; };
await channel.EmbedAsync(embed).ConfigureAwait(false); await channel.EmbedAsync(embed).ConfigureAwait(false);

View File

@ -52,7 +52,8 @@ namespace NadekoBot.Modules.Searches
.AddField(fb => fb.WithName("🌡 Temperature").WithValue($"{obj["centigrade"]}°C / {obj["fahrenheit"]}°F").WithIsInline(true)) .AddField(fb => fb.WithName("🌡 Temperature").WithValue($"{obj["centigrade"]}°C / {obj["fahrenheit"]}°F").WithIsInline(true))
.AddField(fb => fb.WithName("🔆 Feels like").WithValue($"{obj["feelscentigrade"]}°C / {obj["feelsfahrenheit"]}°F").WithIsInline(true)) .AddField(fb => fb.WithName("🔆 Feels like").WithValue($"{obj["feelscentigrade"]}°C / {obj["feelsfahrenheit"]}°F").WithIsInline(true))
.AddField(fb => fb.WithName("🌄 Sunrise").WithValue($"{obj["sunrise"]}").WithIsInline(true)) .AddField(fb => fb.WithName("🌄 Sunrise").WithValue($"{obj["sunrise"]}").WithIsInline(true))
.AddField(fb => fb.WithName("🌇 Sunset").WithValue($"{obj["sunset"]}").WithIsInline(true)); .AddField(fb => fb.WithName("🌇 Sunset").WithValue($"{obj["sunset"]}").WithIsInline(true))
.WithColor(NadekoBot.OkColor);
await channel.EmbedAsync(embed.Build()).ConfigureAwait(false); await channel.EmbedAsync(embed.Build()).ConfigureAwait(false);
} }

View File

@ -23,6 +23,9 @@ namespace NadekoBot
public class NadekoBot public class NadekoBot
{ {
private Logger _log; private Logger _log;
public static uint OkColor { get; } = 0x00ff00;
public static uint ErrorColor { get; } = 0xff0000;
public static CommandService CommandService { get; private set; } public static CommandService CommandService { get; private set; }
public static CommandHandler CommandHandler { get; private set; } public static CommandHandler CommandHandler { get; private set; }

View File

@ -1,4 +1,5 @@
using Discord; using Discord;
using Discord.API;
using Discord.WebSocket; using Discord.WebSocket;
using ImageSharp; using ImageSharp;
using Newtonsoft.Json; using Newtonsoft.Json;