test/fix features

This commit is contained in:
Adam R Grey 2023-06-20 21:38:25 -04:00
parent 147cba7cd3
commit 115035eb91
4 changed files with 6 additions and 4 deletions

View File

@ -81,6 +81,7 @@ public class Detiktokify : Behavior
} }
else else
{ {
message.ActedOn = true;
Console.WriteLine($"file appears too big ({bytesize} bytes ({bytesize / (1024 * 1024)}MB)), not posting"); Console.WriteLine($"file appears too big ({bytesize} bytes ({bytesize / (1024 * 1024)}MB)), not posting");
} }
File.Delete(path); File.Delete(path);

View File

@ -31,7 +31,7 @@ public class Gratitude : Behavior
await message.Channel.SendMessage("you're welcome, citizen!"); await message.Channel.SendMessage("you're welcome, citizen!");
break; break;
case 1: case 1:
await message.React(""); await message.React(":)");
break; break;
case 2: case 2:
await message.React("\U0001F607"); //smiling face with halo await message.React("\U0001F607"); //smiling face with halo
@ -40,7 +40,7 @@ public class Gratitude : Behavior
switch (Shared.r.Next(9)) switch (Shared.r.Next(9))
{ {
case 0: case 0:
await message.React(""); //normal heart, usually rendered red await message.React("<3"); //normal heart, usually rendered red
break; break;
case 1: case 1:
await message.React("\U0001F9E1"); //orange heart await message.React("\U0001F9E1"); //orange heart

View File

@ -13,7 +13,7 @@ public class PulseCheck : Behavior
{ {
public override string Name => "pulse check"; public override string Name => "pulse check";
public override string Trigger => "!pluse ?check"; public override string Trigger => "!pulse ?check";
public override async Task<bool> ActOn(Message message) public override async Task<bool> ActOn(Message message)
{ {

View File

@ -23,11 +23,12 @@ public class UnitConvert : Behavior
if (decimal.TryParse(theseMatches[0].Groups[1].Value, out asNumeric)) if (decimal.TryParse(theseMatches[0].Groups[1].Value, out asNumeric))
{ {
await message.Channel.SendMessage(Conversion.Converter.Convert(asNumeric, theseMatches[0].Groups[2].Value, theseMatches[0].Groups[4].Value.ToLower())); await message.Channel.SendMessage(Conversion.Converter.Convert(asNumeric, theseMatches[0].Groups[2].Value, theseMatches[0].Groups[4].Value.ToLower()));
return true;
} }
await message.Channel.SendMessage("mysteriously semi-parsable"); await message.Channel.SendMessage("mysteriously semi-parsable");
return true;
} }
await message.Channel.SendMessage( "unparsable"); await message.Channel.SendMessage( "unparsable");
return true; return true;
} }
} }