-
Notifications
You must be signed in to change notification settings - Fork 1
/
bot_notes.txt
40 lines (22 loc) · 1.18 KB
/
bot_notes.txt
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
33
34
35
36
37
38
39
40
:host PRIVMSG #channel :msg
:[email protected] QUIT :Quit: Dbgongo
:[email protected] PRIVMSG #lobby :!beer
:[email protected] PRIVMSG #lobby :Give me a !beer
:[email protected] PRIVMSG <NICK> :!beer
- needs to handle notice , privmsg (to user)
QUIT\s:MESSAGE
PING :jettanos.darkdna.net
split string by : which returns and array
convert array to string
split string by ! whichi returns array
<+noms|ill> remind me never to play with toilet roll tubes and my erect penis ever again.
17:45 < nanotube> Plazma-Rooolz: that should happen in your message parser, before your command
dispatcher is involved.
17:46 < nanotube> Plazma-Rooolz: you parse the msg, if it starts with !, you say aha, it is a command
to my bot! strip out the !, and dispatch it along.
QUIT message only works after 5 minutes of connect time
message =
command = message.split.last
MrRoboto.rb:82:in `eventHandler': undefined method `include?' for nil:NilClass (NoMethodError)
from MrRoboto.rb:106:in `run'
from MrRoboto.rb:124:in `<main>'