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"));
|
||||
});
|
||||
|
||||
/*
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user