mirror of
https://github.com/Jetsparrow/karmabot.git
synced 2026-01-21 00:56:09 +03:00
Make stars actually work
This commit is contained in:
parent
83b35ed4fa
commit
fe37980c26
@ -91,12 +91,12 @@ namespace JetKarmaBot.Commands
|
||||
|
||||
var text = args.Message.Text;
|
||||
string awardTypeAcc, awardTypeSym;
|
||||
sbyte awardTypeId = 0;
|
||||
sbyte? awardTypeId;
|
||||
if (awardTypeText == null || awardTypeText == "star")
|
||||
{
|
||||
awardTypeAcc = currentLocale["jetkarmabot.star.accusative"];
|
||||
awardTypeSym = "★";
|
||||
awardTypeId = 0;
|
||||
awardTypeId = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -28,10 +28,10 @@ namespace JetKarmaBot.Commands
|
||||
string response;
|
||||
|
||||
string awardTypeSym;
|
||||
sbyte awardTypeId;
|
||||
sbyte? awardTypeId;
|
||||
if (string.IsNullOrWhiteSpace(awardTypeName) || awardTypeName == "star")
|
||||
{
|
||||
awardTypeId = 0;
|
||||
awardTypeId = null;
|
||||
awardTypeSym = "★";
|
||||
}
|
||||
else
|
||||
|
||||
@ -54,11 +54,11 @@ namespace JetKarmaBot.Commands
|
||||
}
|
||||
else
|
||||
{
|
||||
sbyte awardTypeId;
|
||||
sbyte? awardTypeId;
|
||||
string awardTypeSym;
|
||||
if (awardTypeName == "star")
|
||||
{
|
||||
awardTypeId = 0;
|
||||
awardTypeId = null;
|
||||
awardTypeSym = "★";
|
||||
}
|
||||
else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user