This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Messages - Spyro543
Pages: 1 ... 56 57 [58] 59 60 ... 81
856
« on: July 19, 2011, 10:26:42 am »
jimbauwen's sprite editor is REALLY COOL and EASY TO USE and I find it HELPFUL. [/infomercial]
857
« on: July 19, 2011, 10:22:19 am »
Here they are! link to picLeft: Bryce, my TI-Nspire. Center: My Casio FX-9860G Slim. Right: TI-84+ Keypad
858
« on: July 19, 2011, 09:26:31 am »
Now I've added some more things for the bot to do, and fixed the braces, and look at this:
aaron@aaron-N150P-N210P-N220P:~/BryceBot/pircbot-1.5.0$ javac -classpath pircbot.jar:. *.java BryceBot.java:13: illegal start of expression public final void setTopic(channel, ^ BryceBot.java:13: illegal start of type public final void setTopic(channel, ^ BryceBot.java:13: ';' expected public final void setTopic(channel, ^ BryceBot.java:13: ')' expected public final void setTopic(channel, ^ BryceBot.java:13: not a statement public final void setTopic(channel, ^ BryceBot.java:14: not a statement "Ti-PrgmR, KittyGirl, and UbuntuGuy's Channel. Type $rules for channel rules."); ^ BryceBot.java:14: ';' expected "Ti-PrgmR, KittyGirl, and UbuntuGuy's Channel. Type $rules for channel rules."); ^ BryceBot.java:28: illegal start of expression void op(channel, sender); ^ BryceBot.java:28: ';' expected void op(channel, sender); ^ BryceBot.java:28: not a statement void op(channel, sender); ^ BryceBot.java:28: ';' expected void op(channel, sender); ^ BryceBot.java:28: not a statement void op(channel, sender); ^ BryceBot.java:28: ';' expected void op(channel, sender); ^ BryceBot.java:37: illegal start of expression void op(channel, sender); ^ BryceBot.java:37: ';' expected void op(channel, sender); ^ BryceBot.java:37: not a statement void op(channel, sender); ^ BryceBot.java:37: ';' expected void op(channel, sender); ^ BryceBot.java:37: not a statement void op(channel, sender); ^ BryceBot.java:37: ';' expected void op(channel, sender); ^ BryceBot.java:46: illegal start of expression void op(channel, sender); ^ BryceBot.java:46: ';' expected void op(channel, sender); ^ BryceBot.java:46: not a statement void op(channel, sender); ^ BryceBot.java:46: ';' expected void op(channel, sender); ^ BryceBot.java:46: not a statement void op(channel, sender); ^ BryceBot.java:46: ';' expected void op(channel, sender); ^ 25 errors aaron@aaron-N150P-N210P-N220P:~/BryceBot/pircbot-1.5.0$
Here's the source code:
import org.jibble.pircbot.*;
public class BryceBot extends PircBot { public BryceBot() { this.setName("BryceBot"); } protected void onJoin(String channel, String sender, String login, String hostname) { if(sender.equalsIgnoreCase("BryceBot")) { public final void setTopic(channel, "Ti-PrgmR, KittyGirl, and UbuntuGuy's Channel. Type $rules for channel rules."); } } public void onMessage(String channel, String sender, String login, String hostname, String message) { if (message.equalsIgnoreCase("$time")) { String time = new java.util.Date().toString(); sendMessage(channel, sender + ", The time is now " + time); } } public void onMessage(String channel, String sender, String login, String hostname, String message) { if (message.equalsIgnoreCase("$op")) { if (sender.equalsIgnoreCase("KittyGirl")) { void op(channel, sender); sendMessage(channel, sender + ", you have been opped."); } } } public void onMessage(String channel, String sender, String login, String hostname, String message) { if (message.equalsIgnoreCase("$op")) { if (sender.equalsIgnoreCase("UbuntuGuy")) { void op(channel, sender); sendMessage(channel, sender + ", you have been opped."); } } } public void onMessage(String channel, String sender, String login, String hostname, String message) { if (message.equalsIgnoreCase("$op")) { if (sender.equalsIgnoreCase("Ti-PrgmR")) { void op(channel, sender); sendMessage(channel, sender + ", you have been opped."); } } } public void onMessage(String channel, String sender, String login, String hostname, String message) { if (message.equalsIgnoreCase("$rules")) { sendMessage(channel, "Rules for #tiandubuntu - 1. Please don't troll other users. (Trolling is just basically being mean.) 2. Please no flaming. (Flaming is targeting someone and trying to make them upset.) 3. No useless spam. (Spam is advertising, or useless flooding.) 4. No full swear words. (If you censor it, like f*** or something or do FUUUUUUUUU it's OK. Commands you can use: If you are an owner of this channel, type '$op' to get opped. Type $time for the current time. '$rules' shows the rules and commands available."); } } }
859
« on: July 19, 2011, 09:19:37 am »
I'll see what I can do.
860
« on: July 19, 2011, 09:16:12 am »
All of the "errors" pointed out in the Terminal output aren't errors, but part of PircBot coding  . For example: BryceBot.java:16: illegal start of expression public void onMessage(String channel, String sender, ^There's no error there. That's perfectly fine code. It seems as though you didn't close most of your methods with a curly brace you closed all internal if statements inside, but not the actual methods. Your errors are purely syntax errors from what I can tell. Try adding curly braces. I double checked my curly braces, and there doesn't seem to be and error in them.
861
« on: July 19, 2011, 08:40:42 am »
I'm needing some help with PircBot ( documentation). For some reason, when I add a second event to my bot code, javac completely fails to compile any of it. And I'm trying to op a user here, and it's not working out so well. Here are the two source code files: import org.jibble.pircbot.*;
public class BryceBot extends PircBot { public BryceBot() { this.setName("BryceBot"); } public void onMessage(String channel, String sender, String login, String hostname, String message) { if (message.equalsIgnoreCase("$time")) { String time = new java.util.Date().toString(); sendMessage(channel, sender + ", The time is now " + time); } public void onMessage(String channel, String sender, String login, String hostname, String message) { if (message.equalsIgnoreCase("$op")) { if (sender.equalsIgnoreCase("KittyGirl")) { void op(channel, sender); sendMessage(channel, sender + ", you have been opped."); } } public void onMessage(String channel, String sender, String login, String hostname, String message) { if (message.equalsIgnoreCase("$op")) { if (sender.equalsIgnoreCase("UbuntuGuy")) { void op(channel, sender); sendMessage(channel, sender + ", you have been opped."); } } public void onMessage(String channel, String sender, String login, String hostname, String message) { if (message.equalsIgnoreCase("$op")) { if (sender.equalsIgnoreCase("Ti-PrgmR")) { void op(channel, sender); sendMessage(channel, sender + ", you have been opped."); } } } } mport org.jibble.pircbot.*;
public class BryceBotMain { public static void main(String[] args) throws Exception { BryceBot bot = new BryceBot();
bot.setVerbose(true); bot.connect("irc.SHOUTcast.net");
bot.joinChannel("#tiandubuntu"); } } When I try to compile the files above, I get this: aaron@aaron-N150P-N210P-N220P:~/BryceBot/pircbot-1.5.0$ javac -classpath pircbot.jar:. *.java BryceBot.java:16: illegal start of expression public void onMessage(String channel, String sender, ^ BryceBot.java:16: illegal start of expression public void onMessage(String channel, String sender, ^ BryceBot.java:16: ';' expected public void onMessage(String channel, String sender, ^ BryceBot.java:16: ';' expected public void onMessage(String channel, String sender, ^ BryceBot.java:16: not a statement public void onMessage(String channel, String sender, ^ BryceBot.java:16: ';' expected public void onMessage(String channel, String sender, ^ BryceBot.java:17: ';' expected String login, String hostname, String message) { ^ BryceBot.java:17: not a statement String login, String hostname, String message) { ^ BryceBot.java:17: ';' expected String login, String hostname, String message) { ^ BryceBot.java:17: ';' expected String login, String hostname, String message) { ^ BryceBot.java:20: illegal start of expression void op(channel, sender); ^ BryceBot.java:20: ';' expected void op(channel, sender); ^ BryceBot.java:20: not a statement void op(channel, sender); ^ BryceBot.java:20: ';' expected void op(channel, sender); ^ BryceBot.java:20: not a statement void op(channel, sender); ^ BryceBot.java:20: ';' expected void op(channel, sender); ^ BryceBot.java:25: illegal start of expression public void onMessage(String channel, String sender, ^ BryceBot.java:25: illegal start of expression public void onMessage(String channel, String sender, ^ BryceBot.java:25: ';' expected public void onMessage(String channel, String sender, ^ BryceBot.java:25: ';' expected public void onMessage(String channel, String sender, ^ BryceBot.java:25: not a statement public void onMessage(String channel, String sender, ^ BryceBot.java:25: ';' expected public void onMessage(String channel, String sender, ^ BryceBot.java:26: ';' expected String login, String hostname, String message) { ^ BryceBot.java:26: not a statement String login, String hostname, String message) { ^ BryceBot.java:26: ';' expected String login, String hostname, String message) { ^ BryceBot.java:26: ';' expected String login, String hostname, String message) { ^ BryceBot.java:29: illegal start of expression void op(channel, sender); ^ BryceBot.java:29: ';' expected void op(channel, sender); ^ BryceBot.java:29: not a statement void op(channel, sender); ^ BryceBot.java:29: ';' expected void op(channel, sender); ^ BryceBot.java:29: not a statement void op(channel, sender); ^ BryceBot.java:29: ';' expected void op(channel, sender); ^ BryceBot.java:34: illegal start of expression public void onMessage(String channel, String sender, ^ BryceBot.java:34: illegal start of expression public void onMessage(String channel, String sender, ^ BryceBot.java:34: ';' expected public void onMessage(String channel, String sender, ^ BryceBot.java:34: ';' expected public void onMessage(String channel, String sender, ^ BryceBot.java:34: not a statement public void onMessage(String channel, String sender, ^ BryceBot.java:34: ';' expected public void onMessage(String channel, String sender, ^ BryceBot.java:35: ';' expected String login, String hostname, String message) { ^ BryceBot.java:35: not a statement String login, String hostname, String message) { ^ BryceBot.java:35: ';' expected String login, String hostname, String message) { ^ BryceBot.java:35: ';' expected String login, String hostname, String message) { ^ BryceBot.java:38: illegal start of expression void op(channel, sender); ^ BryceBot.java:38: ';' expected void op(channel, sender); ^ BryceBot.java:38: not a statement void op(channel, sender); ^ BryceBot.java:38: ';' expected void op(channel, sender); ^ BryceBot.java:38: not a statement void op(channel, sender); ^ BryceBot.java:38: ';' expected void op(channel, sender); ^ BryceBot.java:43: reached end of file while parsing } ^ BryceBot.java:44: reached end of file while parsing
^ 50 errors aaron@aaron-N150P-N210P-N220P:~/BryceBot/pircbot-1.5.0$
If I compile and run the bot with just the first event (the one that shows the time), it works fine, but if I even copy and paste that event and use that code to make a slightly different code block with it, it fails. If anyone here knows how to use PircBot, I would greatly appreciate help. Thanks.
862
« on: July 16, 2011, 09:03:12 am »
Hey ! Wy new code works well (except if you press more than 1 key) !
EDIT: I attached the file for the lazy ones 
Compiled and I got ERR:SYNTAX.
863
« on: July 16, 2011, 08:47:10 am »
What axe are u usin? caus in 1.0 its changed the ':''s function to somethin different i think.
1.0
864
« on: July 16, 2011, 08:39:10 am »
Oh, well then if that's not a bug, what's up with my code
865
« on: July 16, 2011, 08:34:17 am »
The getkey is wrong! Axe allows multitasking!
.MOVEDEMO 1->A 1->B [FF818181999999FF->Pic1 Pt-On(1,1,Pic1 DispGraph Lbl 1 If Getkey (4) A+1->A [FF999999818181FF]->Pic2 Pt-On(A,B,Pic2 DispGraph End ... I think....I understand that... WAIT - Should I do Getkey(4) or Getkey (4)
866
« on: July 16, 2011, 08:26:30 am »
Ok, will eliminate the "Then"s. I'm just used to Casio-Basic, which requires Thens. EDIT: Still doesn't work. I'm not sure how to get individual files from my calc with TILP.
867
« on: July 16, 2011, 08:11:01 am »
Hi, first time Axe programmer here.  At 15% of compiling, I get an Invalid Token error. Here is the code: .MOVEDEMO 1->A 1->B Pt-On(1,1,[FF818181999999FF]):DispGraph Lbl 1 Getkey->C If C=4 Then A+1->A:Pt-On(A,B,[FF999999818181FF]):DispGraph End If C=1 Then A-1->A:Pt-On(A,B,[FF818181999999FF]):DispGraph End If C=2 Then B-1->B:Pt-On(A,B,[FF8181F1F18181FF]):DispGraph End If C=3 Then B+1->B:Pt-On(A,B,[FF81818F8F8181FF]):DispGraph End Goto 1 How can I make this code work?
868
« on: July 13, 2011, 04:50:05 pm »
Ok, so I think I might need to work on the hardware, and just boot a system first, before making an OS...
870
« on: July 13, 2011, 03:13:46 pm »
Don't use action="mailto:. What that does is call the client's default installed mail software (such as Outlook) to send the form data through there. The problem is that not every computer has a mail program, and every mail program is different. You should definitely use PHP to take care of the form data instead.
FUUUUUUUUUUUU~! (I wouldn't know where to start!) Still wondering how I can make the form output readable?
Pages: 1 ... 56 57 [58] 59 60 ... 81
|