@Override public void onStatus(Status status) { Language language = twitterIDs.get(status.getUser().getId()); if (twitterIDs.containsKey(status.getUser().getId()) && (status.getInReplyToScreenName() == null || twitterIDs.containsKey(status.getInReplyToUserId()))) for (TwitterFinder twitterFinder : TwitterFinder.getTwitterChannels().values()) try { IChannel chan = ClientConfig.DISCORD().getChannelByID(twitterFinder.getChannelId()); if (chan != null && Translator.getLanguageFrom(chan).equals(language)) Message.sendEmbed(chan, createEmbedFor(status)); } catch(Exception e){ Reporter.report(e, ClientConfig.DISCORD().getChannelByID(twitterFinder.getChannelId())); LOG.error("onStatus", e); } }
status.to_users.add(u); if (this.status.getInReplyToScreenName() != null) { status.reply_to = new User(); status.reply_to.name = this.status.getInReplyToScreenName(); status.reply_to.id = this.status.getInReplyToUserId();
status.to_users.add(u); if (this.status.getInReplyToScreenName() != null) { status.reply_to = new User(); status.reply_to.name = this.status.getInReplyToScreenName(); status.reply_to.id = this.status.getInReplyToUserId();
.put("InReplyToStatusId", status.getInReplyToStatusId()) .put("InReplyToUserId", status.getInReplyToUserId()) .put("InReplyToScreenName", status.getInReplyToScreenName()) .put("Favorited", status.isFavorited()) .put("Retweeted", status.isRetweeted())