From 64e61921abef34d805c63f39f3bb33ae44ce6542 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Mon, 8 Feb 2016 11:03:27 +0100 Subject: [PATCH] newavatar commented out --- NadekoBot/Modules/Administration.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/NadekoBot/Modules/Administration.cs b/NadekoBot/Modules/Administration.cs index f4c3bd37..d46e3129 100644 --- a/NadekoBot/Modules/Administration.cs +++ b/NadekoBot/Modules/Administration.cs @@ -451,7 +451,7 @@ namespace NadekoBot.Modules { await client.CurrentUser.Edit(NadekoBot.password, e.GetArg("new_name")); }); - + /* cgb.CreateCommand(".newavatar") .Alias(".setavatar") .Description("Sets the new avatar from the image URL. PNG and JPEG supported") @@ -459,13 +459,11 @@ namespace NadekoBot.Modules { .Do(async e => { if (e.User.Id != NadekoBot.OwnerID || e.GetArg("new_avatar") == null) return; var arg = e.GetArg("new_avatar").Trim(); - ImageType imgType = ImageType.Jpeg; - if (arg.EndsWith("png")) - imgType = ImageType.Png; + ImageType imgType = arg.EndsWith("png") ? ImageType.Png: ImageType.Jpeg; var res = await Searches.GetResponseStream(e.GetArg("new_avatar")); await client.CurrentUser.Edit(NadekoBot.password, avatar: res, avatarType: imgType); }); - + */ cgb.CreateCommand(".setgame") .Description("Sets the bots game.") .Parameter("set_game", ParameterType.Unparsed)