Hello,
This is my current todo list for the bot:
11/30/2003 TODO LIST
* unsubscribe list user ADMIN command
* Make it so ONLY admins may post to GlobalNews list
(to prevent spamming....to all users...)
* When adduser automaticlly add them to GlobalNews
List......
* Add an e-mail Admin command ;)
* email admin should work for any admins
* must provide function for admins to provide thier
e-mails....when adduser......
* syntax for adduser: adduser USERNAME ADMIN EMAIL
* syntax for e-mail: email ADMINNAME
shortmessagehere...or no ADMINNAME, goes to all?
* Add a request new user command.....by e-mail? or
message admins?
* Add a shutdown and restart command.....
I'm going to try and implement almost all of
this......any you like you guys can have. I'm rather
new to JAVA, but hope to be able to do this. The
biggest problem, how should I go about doing the e-mail
stuff? I'm not sure if there's anything on JAVA side
(IE API or library or something from SUN for SMTP etc.)
I'd also like to have a list that all users would be a
part of (but could unsubscribe - so it's not
spam....yeah....). It would send them any real big news.
As I said, I implemented my first todo (not
listed...above...I made that list AFTER I implemented
it....note changelog below). You want .diff UNIX patch
files?
The email stuff is if the user needs to get something
off to an admin. Like a feature request, they found
some bug, something is wrong, they don't understand
something or whatever.
I also thought a request new user is in order, as if
you have the bot set-up so the admin can only make new
users...well....if some user has a friend that wants to
use it, and can't you need an admin and the easiest way
is to ask him to add someone....but what if the admin
isn't on? Basically, I will call it a request new user
command - but underneath probably a simple message
fired off just like the tell command. I think it
should be a new command so as to make it easier for the
end-user.
IE All the enduser sees is a bunch of commands for him
to get in touch with an admin, not having to do tell
and look up and admin, and message him. Just my
ideas.......still trying to work everything out...will
keep you guys posted... :)
-Wolf
wrichter@att.net
Logged In: NO
LOL and I forgot my changelog....well it doesn't really say
much but here goes :
11/30/2003
* Added 'subscribe list user' command/function...in
ListModule, for admins only add any user to any list ;)
Also, I have created a shell script that starts the
JAIMBOT...rather than forcing the admin to re-type entire
classpath etc. It also asks if your using the pre-compiled
jar version, or if you compiled yourself (classpath
differs....). Will add more functions to shell script to
edit bot.propertis config file...or whatever it is! :)
-Wolf
wrichter@att.net
Logged In: NO
Here's what I envision, step-by-step.
1)adduser issued by an admin...
2)New user message fired off to the added user (describes
bot system and how to use it, as well as command to email/IM
an admin to remove you if in error...)
3)New user is also added to some sort of GlobalChannel, and
IMed that this List can be unsubscribed from -and how-to,
but that it will keep them up-to-date with the latest
developments and news etc.
Only big things...I will probably add them all.....and I
think I will steer clear of e-mail....as I was just
thinkging logically there is no need....can just IM...
-Wolf
wrichter@att.net
Logged In: YES
user_id=273524
Wolf,
That would be great to get all that! Here are some pointers:
For mail, look into the Java Mail API:
http://java.sun.com/products/javamail/
For the send to all, you could write a new module that
allows admins to "broadcast" a message. You could look for
a preference like "acceptbroadcast false" to allow people to
not recieve broadcasts. To send the message you will need
to enumerate over the buddies, Here is some code:
Iterator iter = getBuddyNames();
while (iter.hasNext()) {
String bname= (String) iter.next();
AIMBuddy buddy=getBuddy(bname);
//Add the message to send an IM to buddy
}
I would recomend not directly sending the message ( as rate
limiting will cause it to take a really long time for lots
of buddies). Instead of sending the message right away, you
can use addMessage(messagage), on each buddy so they get the
message the next time they sign on. This has the advantage
of spreading the sending of the message out in time. But
its up to you. The approach above has he advantage of not
needing to maintain a GlobalNews list, it can be calculated
on the fly (this way you dont have to know about users being
added and removed, and the users can set a preference to
indicate if they want to be "on the news list").
I would also prefer if the email address for a buddy was a
preference (e.g. setpref email foo@bar.com).
A .diff UNIX patch is prefered, but full files are fine with
me too.
Users can add other users, they just can't add other admins.
Am I missing the point? Just try adduser.
Let me know if you have further questions,
Thanks again,
Scott