View difference between Paste ID: kJnU4mR2 and ZMDSMvqJ
SHOW: | | - or go back to the newest paste.
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
6
using BattleCore;
7
using BattleCore.Events;
8
using BattleCore.PsyOps;
9
10
namespace FirstBot
11
{
12
    [Behavior("firstModule", "true", "0.01", "mashem", "My first module.")]
13
    public class firstModule:BotEventListener
14
    {
15
        public firstModule()
16
        {
17
            RegisterCommand("!flags", ToggleFlagEvent);
18
        }
19
20
        Chat msg = new Chat();
21
22-
            c.ChatType = ChatTypes.Private;
22+
23-
            c.Message = "The cake is a lie.";
23+
24
            Game(msg.pm(c.PlayerName, "The cake is a lie."));
25-
            SendGameEvent(c);
25+
26
27
        public override void Dispose()
28
        {
29
            throw new NotImplementedException();
30
        }
31
    }
32
}