MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / sendInfo

Method sendInfo

packages/hydrooj/src/model/message.ts:33–38  ·  view source on GitHub ↗
(to: number, content: string)

Source from the content-addressed store, hash-verified

31 }
32
33 static async sendInfo(to: number, content: string) {
34 const mdoc: MessageDoc = {
35 from: 1, to, content, flag: MessageModel.FLAG_INFO | MessageModel.FLAG_I18N,
36 };
37 bus.broadcast('user/message', [to], mdoc);
38 }
39
40 static async get(_id: ObjectId) {
41 return await MessageModel.coll.findOne({ _id });

Callers 1

progressFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected