Package silvertrout

Examples of silvertrout.Channel.sendPrivmsg()


                            //channels.add(follower.getChannel());
                            channel = follower.getChannel();
                        }

                        message += updatedGame.gametime + " " + updatedGame.hometeam + " - " + updatedGame.awayteam + " " + updatedGame.result;
                        channel.sendPrivmsg(message);
                        ArrayList<FootballEvent> events = updatedGame.events;
                        for (FootballEvent event : events) {
                            message = event.matchtime + " ";
                            if (event.yellowcard) {
                                message += Color.yellow(" YELLOW CARD " + event.playername);
View Full Code Here


                            } else if (event.redcard) {
                                message += Color.red(" RED CARD " + event.playername);
                            } else if (event.goal) {
                                message += Color.green(" GOAL " + event.score + " " + event.playername);
                            }
                            channel.sendPrivmsg(message);
                        }
                    }
                }
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.