mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 09:48:26 -04:00
- Fixed counting parameters which have formats in response strings
- Almost finished porting localized string keys as methods - Compiles
This commit is contained in:
@@ -264,16 +264,19 @@ namespace NadekoBot.Modules.Xp.Services
|
||||
{
|
||||
var chan = await x.User.GetOrCreateDMChannelAsync();
|
||||
if (chan != null)
|
||||
await chan.SendConfirmAsync(_eb, _strings.GetText(strs.level_up_dm,
|
||||
x.Guild.Id,
|
||||
x.User.Mention, Format.Bold(x.Level.ToString()),
|
||||
Format.Bold(x.Guild.ToString() ?? "-")));
|
||||
await chan.SendConfirmAsync(_eb,
|
||||
_strings.GetText(strs.level_up_dm(
|
||||
x.User.Mention, Format.Bold(x.Level.ToString()),
|
||||
Format.Bold(x.Guild.ToString() ?? "-")),
|
||||
x.Guild.Id));
|
||||
}
|
||||
else if (x.MessageChannel != null) // channel
|
||||
{
|
||||
await x.MessageChannel.SendConfirmAsync(_eb, _strings.GetText(strs.level_up_channel,
|
||||
x.Guild.Id,
|
||||
x.User.Mention, Format.Bold(x.Level.ToString())));
|
||||
await x.MessageChannel.SendConfirmAsync(_eb,
|
||||
_strings.GetText(strs.level_up_channel(
|
||||
x.User.Mention,
|
||||
Format.Bold(x.Level.ToString())),
|
||||
x.Guild.Id));
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -288,9 +291,11 @@ namespace NadekoBot.Modules.Xp.Services
|
||||
chan = x.MessageChannel;
|
||||
}
|
||||
|
||||
await chan.SendConfirmAsync(_eb, _strings.GetText(strs.level_up_global,
|
||||
x.Guild.Id,
|
||||
x.User.Mention, Format.Bold(x.Level.ToString())));
|
||||
await chan.SendConfirmAsync(_eb,
|
||||
_strings.GetText(strs.level_up_global(
|
||||
x.User.Mention,
|
||||
Format.Bold(x.Level.ToString())),
|
||||
x.Guild.Id));
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
Reference in New Issue
Block a user