mirror of
https://github.com/vishapoberon/vipak.git
synced 2026-04-05 20:42:26 +00:00
34 lines
550 B
Modula-2
34 lines
550 B
Modula-2
MODULE test;
|
|
|
|
IMPORT IRC, Out, Strings := ooc2Strings;
|
|
|
|
VAR
|
|
|
|
owner, user, nick, host, port, channel: ARRAY 32 OF CHAR;
|
|
|
|
PROCEDURE testBot;
|
|
VAR
|
|
b: BOOLEAN;
|
|
channels : IRC.chnlist;
|
|
BEGIN
|
|
NEW(channels, 1);
|
|
channels[0] := channel;
|
|
IRC.setChannelList(channels);
|
|
|
|
IF IRC.Connect(host, port) # FALSE THEN
|
|
b := IRC.Auth(user, nick, owner);
|
|
IRC.Loop;
|
|
END;
|
|
END testBot;
|
|
|
|
BEGIN
|
|
owner := "norayr_tanakian";
|
|
user := "norayr_tanakian";
|
|
nick := "vocbot";
|
|
host := "irc.freenode.net";
|
|
port := "6667";
|
|
channel := "#oberon";
|
|
|
|
testBot;
|
|
|
|
END test.
|