forked from adam/discord-bot-shtik
test/fix features
This commit is contained in:
parent
147cba7cd3
commit
115035eb91
@ -81,6 +81,7 @@ public class Detiktokify : Behavior
|
||||
}
|
||||
else
|
||||
{
|
||||
message.ActedOn = true;
|
||||
Console.WriteLine($"file appears too big ({bytesize} bytes ({bytesize / (1024 * 1024)}MB)), not posting");
|
||||
}
|
||||
File.Delete(path);
|
||||
|
@ -31,7 +31,7 @@ public class Gratitude : Behavior
|
||||
await message.Channel.SendMessage("you're welcome, citizen!");
|
||||
break;
|
||||
case 1:
|
||||
await message.React("☺");
|
||||
await message.React(":)");
|
||||
break;
|
||||
case 2:
|
||||
await message.React("\U0001F607"); //smiling face with halo
|
||||
@ -40,7 +40,7 @@ public class Gratitude : Behavior
|
||||
switch (Shared.r.Next(9))
|
||||
{
|
||||
case 0:
|
||||
await message.React("❤"); //normal heart, usually rendered red
|
||||
await message.React("<3"); //normal heart, usually rendered red
|
||||
break;
|
||||
case 1:
|
||||
await message.React("\U0001F9E1"); //orange heart
|
||||
|
@ -13,7 +13,7 @@ public class PulseCheck : Behavior
|
||||
{
|
||||
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)
|
||||
{
|
||||
|
@ -23,11 +23,12 @@ public class UnitConvert : Behavior
|
||||
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()));
|
||||
return true;
|
||||
}
|
||||
await message.Channel.SendMessage("mysteriously semi-parsable");
|
||||
return true;
|
||||
}
|
||||
await message.Channel.SendMessage( "unparsable");
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user