Slight nerf
This commit is contained in:
parent
b0d55bf77e
commit
9fd67f6ec7
|
@ -84,6 +84,8 @@ namespace DeukBot4.MessageHandlers
|
|||
string newName;
|
||||
var lower = message.Content.ToLowerInvariant();
|
||||
|
||||
if (lower[0] != 'i')
|
||||
return;
|
||||
if (lower.StartsWith("i'm "))
|
||||
{
|
||||
newName = message.Content.Remove(0, 4);
|
||||
|
@ -100,6 +102,8 @@ namespace DeukBot4.MessageHandlers
|
|||
{
|
||||
return;
|
||||
}
|
||||
if (newName.Length > 15)
|
||||
return;
|
||||
|
||||
await message.Channel.SendMessageAsync($"Hi {newName}, i'm Deukbot");
|
||||
await guildUser.ModifyAsync(user => user.Nickname = newName);
|
||||
|
|
Loading…
Reference in New Issue