mirror of
https://github.com/asphyxia-core/plugin-template.git
synced 2026-09-08 18:35:15 -05:00
v1.50a example
This commit is contained in:
@@ -53,3 +53,7 @@ export const example: EPR = async (info, data, send) => {
|
||||
export const changeName = async (data: any) => {
|
||||
await DB.Update(data.refid, { collection: 'profile' }, { $set: { name: data.name } });
|
||||
};
|
||||
|
||||
export const randomNumber = async (data: any, send: WebUISend) => {
|
||||
send.json({ number: Math.floor(Math.random() * 100) });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user