-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBot.cs
32 lines (25 loc) · 838 Bytes
/
Bot.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Poly;
using Poly.Data;
using Poly.Net.Irc;
namespace Poly {
public partial class Bot : Client {
public Bot() {
}
public void On(string Name, Event.Handler Func) {
this.AddEvent("On" + Name, Event.Wrapper(Func, "Bot", this));
}
public void On(string Name, Event.Handler Func, object This) {
this.AddEvent("On" + Name, Event.Wrapper(Func, "Bot", this, "this", This));
}
public void On(string Name, Event.Handler Func, string ThisName, object This) {
this.AddEvent("On" + Name, Event.Wrapper(Func, "Bot", this, ThisName, This));
}
public void Configure(jsObject Args) {
Args.CopyTo(this);
}
}
}