vassago/Behavior/PulseCheck.cs

26 lines
662 B
C#
Raw Normal View History

2023-06-19 01:14:04 -04:00
namespace vassago.Behavior;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using vassago.Models;
2023-06-20 21:26:44 -04:00
[StaticPlz]
2023-06-19 01:14:04 -04:00
public class PulseCheck : Behavior
{
public override string Name => "pulse check";
2023-06-20 21:38:25 -04:00
public override string Trigger => "!pulse ?check";
2023-06-19 01:14:04 -04:00
2023-06-19 11:03:06 -04:00
public override async Task<bool> ActOn(Message message)
2023-06-19 01:14:04 -04:00
{
if(message.Channel.EffectivePermissions.MaxAttachmentBytes >= 16258)
await message.Channel.SendFile("assets/ekgblip.png", null);
else
await message.Channel.SendMessage("[lub-dub]");
2023-06-19 01:14:04 -04:00
return true;
}
}