Beispiel #1
0
    public Map<String, Construct> evaluate(BindableEvent e) throws EventException {
      Map<String, Construct> retn = new HashMap<String, Construct>();

      if (e instanceof Join) {
        Join msg = (Join) e;

        retn.put("id", new CString(msg.getBot().getID(), Target.UNKNOWN));
        retn.put("who", new CString(msg.getWho(), Target.UNKNOWN));
        retn.put("channel", new CString(msg.getChannel(), Target.UNKNOWN));
      }

      return retn;
    }