newavatar commented out

This commit is contained in:
Master Kwoth 2016-02-08 11:03:27 +01:00
parent 596e6e51d2
commit 64e61921ab

View File

@ -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)