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);
- }
- public void ToggleFlagEvent(ChatEvent c)
- {
- ChatEvent newmsg = new ChatEvent();
- newmsg.PlayerName = c.PlayerName;
- newmsg.ChatType = ChatTypes.Private;
- newmsg.Message = "Message you want sent back.";
- SendGameEvent(newmsg);
- }
- public override void Dispose()
- {
- throw new NotImplementedException();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment