Quote:
Originally Posted by napo_p2p
That's probably an ancient IRC EventBot thingy. I'll fix it when I get home from work tonight.
|
good to hear, but i'm interested to get this working ASP.
the script doesnt look too old, but you made it very messy imo.
Quote:
Originally Posted by cbk1994
We can't help you if you don't post the code.
|
PHP Code:
function onCreated() doConnect();
function onInitialized() doConnect();
function onServerListerConnect() doConnect();
function doConnect()
{
//sendtext("irc", "logout", "");
sendtext("irc", "login", "EventsBot_AEON");
}
function onReceiveText(texttype, textoptions, textlines) {
if (texttype != "irc" || textoptions != "privmsg") return;
switch (textlines[2][0]) {
case "!eventsbotlogin": {
sendtext("irc", "privmsg", {"IRCBot", {"!eventadmins", {"acc", "acc"}}});
sendtext("irc", "privmsg", {"IRCBot", {"!eventchannel", "#channel"}});
// tell the serverlist that you are serving serverlist info
sendtext("irc", "privmsg", {"IRCBot", {"!handleserverinfo", 1}});
break;
}
// called whenever anybody clicks the server on the serverlist
case "!getserverinfo": {
temp.list = {
"<center>",
"<font size=24>Aeon</font><br>",
"<img src=login_server_aeon.png><br>",
"</center><sbreak>",
"<ignorelinebreaks>",
"Aeon is a world with 4 words in one."
};
sendtext("irc", "notice", {textlines[0], {"!serverinfo", temp.list}});
break;
}
}
}
this is pretty much the same script as
skyld posted...
and i dont see why this wouldnt work, if you are sure that hosted can have this type of thing still.