zD12 / pircbotx

Automatically exported from code.google.com/p/pircbotx
0 stars 0 forks source link

How to have bot send input entered by user #122

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This isn't really a problem, more so that I cannot figure out how to take user 
input after say a specific string is enter (i.e ".sendmessage" is entered into 
the console) and have the bot send it to the channel. If anyone could help me 
with this implementation, it would be very much appreciated.

Original issue reported on code.google.com by Nick.fr...@gmail.com on 11 Apr 2013 at 12:35

GoogleCodeExporter commented 9 years ago
Is this "console" the command prompt on your machine that the bot is running 
in? Because that's not something that PircBotX handles; its a IRC library not a 
ready-made bot framework.

The Scanner class ( 
http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Scanner.html ) might be 
useful but your going to have to figure out how to use it in your program

In the future please use the mailing list for support questions: 
https://groups.google.com/forum/?fromgroups#!forum/pircbotx

Original comment by Lord.Qua...@gmail.com on 11 Apr 2013 at 12:44