Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using BattleCore;
- using BattleCore.Events;
- using BattleCore.PsyOps;
- namespace FirstBot
- {
- [Behavior("firstModule", "true", "0.01", "mashem", "My first module.")]
- public class firstModule:BotEventListener
- {
- public firstModule()
- {
- RegisterCommand("!flags", ToggleFlagEvent);
- }
- Chat msg = new Chat();
- public void ToggleFlagEvent(ChatEvent c)
- {
- Game(msg.pm(c.PlayerName, "The cake is a lie."));
- }
- public void FunctionToCatchAllChat(object sender, ChatEvent c)
- {
- if (c.Message == "!test")
- {
- Game(msg.pm(c.PlayerName,"Test succesful."));
- }
- }
- public override void Dispose()
- {
- throw new NotImplementedException();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment