53 lines
1.8 KiB
C#
53 lines
1.8 KiB
C#
namespace NadekoBot
|
|
{
|
|
public class Credentials
|
|
{
|
|
public string Username;
|
|
public string Password;
|
|
public string BotMention;
|
|
public string GoogleAPIKey;
|
|
public ulong OwnerID;
|
|
public string TrelloAppKey;
|
|
public bool? ForwardMessages;
|
|
public string SoundCloudClientID;
|
|
public string MashapeKey;
|
|
public string LOLAPIKey;
|
|
public bool DontJoinServers = false;
|
|
}
|
|
public class AnimeResult
|
|
{
|
|
public int id;
|
|
public string airing_status;
|
|
public string title_english;
|
|
public int total_episodes;
|
|
public string description;
|
|
public string image_url_lge;
|
|
|
|
public override string ToString() =>
|
|
"`Title:` **" + title_english +
|
|
"**\n`Status:` " + airing_status +
|
|
"\n`Episodes:` " + total_episodes +
|
|
"\n`Link:` http://anilist.co/anime/" + id +
|
|
"\n`Synopsis:` " + description.Substring(0, description.Length > 500 ? 500 : description.Length) + "..." +
|
|
"\n`img:` " + image_url_lge;
|
|
}
|
|
class MangaResult
|
|
{
|
|
public int id;
|
|
public string publishing_status;
|
|
public string image_url_lge;
|
|
public string title_english;
|
|
public int total_chapters;
|
|
public int total_volumes;
|
|
public string description;
|
|
|
|
public override string ToString() =>
|
|
"`Title:` **" + title_english +
|
|
"**\n`Status:` " + publishing_status +
|
|
"\n`Chapters:` " + total_chapters +
|
|
"\n`Volumes:` " + total_volumes +
|
|
"\n`Link:` http://anilist.co/manga/" + id +
|
|
"\n`Synopsis:` " + description.Substring(0, description.Length > 500 ? 500 : description.Length) + "..." +
|
|
"\n`img:` " + image_url_lge;
|
|
}
|
|
} |