SecondBot/CLI/DiscordSupervisor/DiscordEvents.cs
Madpeterz 1ad87071c5 new discord-v control overlay
allows you to log in and out the bot via discord
2021-01-04 10:32:30 +00:00

20 lines
571 B
C#

using BSB.bottypes;
using System;
using System.Collections.Generic;
using System.Text;
namespace BetterSecondBot.DiscordSupervisor
{
public class DiscordEvents : DiscordBot
{
protected void attach_events()
{
controler.Bot.MessageEvent += BotChatControlerHandler;
}
protected void BotChatControlerHandler(object sender, MessageEventArgs e)
{
BotChatControler(e.message, e.sender_name, e.sender_uuid, e.avatar, e.group, e.group_uuid, e.localchat, e.fromme);
}
}
}