newavatar commented out
This commit is contained in:
parent
596e6e51d2
commit
64e61921ab
@ -451,7 +451,7 @@ namespace NadekoBot.Modules {
|
|||||||
|
|
||||||
await client.CurrentUser.Edit(NadekoBot.password, e.GetArg("new_name"));
|
await client.CurrentUser.Edit(NadekoBot.password, e.GetArg("new_name"));
|
||||||
});
|
});
|
||||||
|
/*
|
||||||
cgb.CreateCommand(".newavatar")
|
cgb.CreateCommand(".newavatar")
|
||||||
.Alias(".setavatar")
|
.Alias(".setavatar")
|
||||||
.Description("Sets the new avatar from the image URL. PNG and JPEG supported")
|
.Description("Sets the new avatar from the image URL. PNG and JPEG supported")
|
||||||
@ -459,13 +459,11 @@ namespace NadekoBot.Modules {
|
|||||||
.Do(async e => {
|
.Do(async e => {
|
||||||
if (e.User.Id != NadekoBot.OwnerID || e.GetArg("new_avatar") == null) return;
|
if (e.User.Id != NadekoBot.OwnerID || e.GetArg("new_avatar") == null) return;
|
||||||
var arg = e.GetArg("new_avatar").Trim();
|
var arg = e.GetArg("new_avatar").Trim();
|
||||||
ImageType imgType = ImageType.Jpeg;
|
ImageType imgType = arg.EndsWith("png") ? ImageType.Png: ImageType.Jpeg;
|
||||||
if (arg.EndsWith("png"))
|
|
||||||
imgType = ImageType.Png;
|
|
||||||
var res = await Searches.GetResponseStream(e.GetArg("new_avatar"));
|
var res = await Searches.GetResponseStream(e.GetArg("new_avatar"));
|
||||||
await client.CurrentUser.Edit(NadekoBot.password, avatar: res, avatarType: imgType);
|
await client.CurrentUser.Edit(NadekoBot.password, avatar: res, avatarType: imgType);
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
cgb.CreateCommand(".setgame")
|
cgb.CreateCommand(".setgame")
|
||||||
.Description("Sets the bots game.")
|
.Description("Sets the bots game.")
|
||||||
.Parameter("set_game", ParameterType.Unparsed)
|
.Parameter("set_game", ParameterType.Unparsed)
|
||||||
|
Loading…
Reference in New Issue
Block a user