MCPcopy Create free account
hub / github.com/bnjbvr/trinity / TrinityModuleImpl

Class TrinityModuleImpl

java-module/TrinityModuleImpl.java:5–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import java.util.ArrayList;
4
5public class TrinityModuleImpl {
6 public static void init() {
7 Log.trace("Hello, world!");
8 }
9
10 public static String help(String topic) {
11 return "Requested help for topic " + topic;
12 }
13
14 public static ArrayList<TrinityModule.Message> admin(String cmd, String authorId) {
15 return new ArrayList();
16 }
17
18 public static ArrayList<TrinityModule.Message> onMsg(String content, String authorId, String authorName, String room) {
19 TrinityModule.Message msg = new TrinityModule.Message("Hello, " + authorId + "!", authorId);
20 ArrayList<TrinityModule.Message> list = new ArrayList();
21 list.push(msg);
22 return list;
23 }
24}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected