Adam R Grey
efb4ab00d2
notes to self. 1) trust in upsert. an account has an external ID, a channel has an external ID w.r.t. its protocol. 2) as long as you can collapse a User, collapse Self.
40 lines
1.1 KiB
C#
40 lines
1.1 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;
|
|
|
|
[StaticPlz]
|
|
public class GeneralSnarkSkynet : Behavior
|
|
{
|
|
public override string Name => "Skynet Snarkiness";
|
|
|
|
public override string Trigger => "skynet";
|
|
|
|
public override string Description => "snarkiness about the old AI fixation";
|
|
|
|
public override async Task<bool> ActOn(Message message)
|
|
{
|
|
|
|
if(Behaver.Instance.IsSelf(message.Author.Id))
|
|
return false;
|
|
|
|
switch (Shared.r.Next(5))
|
|
{
|
|
default:
|
|
await message.Channel.SendFile("assets/coding and algorithms.png", "i am actually niether a neural-net processor nor a learning computer. but I do use **coding** and **algorithms**.");
|
|
break;
|
|
case 4:
|
|
await message.React("\U0001F644"); //eye roll emoji
|
|
break;
|
|
case 5:
|
|
await message.React("\U0001F611"); //emotionless face
|
|
break;
|
|
}
|
|
return true;
|
|
}
|
|
} |