vassago/Behavior/DefinitionSnarkGaslight.cs
adam 92988257b6
All checks were successful
gitea.arg.rip/vassago/pipeline/head This commit looks good
localizations. command aliases.
see #19. see #9.
2025-06-20 20:09:44 -04:00

35 lines
1.0 KiB
C#

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;
using static vassago.Models.Enumerations;
[StaticPlz]
public class DefinitionSnarkGaslight : Behavior
{
public override string Name => "Definition Snarkiness: gaslighting";
public override string Trigger => "\\bgaslight(ing)?";
public override string Description => "snarkiness about the rampant misuse of the term gaslighting";
public override bool ShouldAct(Message message, List<UAC> matchedUACs)
{
if((MeannessFilterLevel)message.Channel.EffectivePermissions.MeannessFilterLevel < MeannessFilterLevel.Unrestricted)
return false;
return base.ShouldAct(message, matchedUACs);
}
public override async Task<bool> ActOn(Message message)
{
Behaver.Instance.SendMessage(message.Channel.Id, "that's not what gaslight means. Did you mean \"deceive\"?");
return true;
}
}