Add example module

This commit is contained in:
Tanguy Herbron 2021-05-09 00:51:23 +02:00
parent b80de72d0b
commit bcfa5177de
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,8 @@
{
"name": "Hello world",
"description": "Hello world, example module for embeded messages",
"prefix": "!hello",
"flavor": "node",
"entrypoint": "index.js",
"version": "0.0.1"
}

View File

@ -0,0 +1,27 @@
let reply = {
status: "success",
action: "reply",
format: "embed",
message: "Testing",
profile: {
color: 0x0099f,
title: "Testing embed",
url: undefined,
author: undefined,
description: "Description of the testing embed",
thumbnail: undefined,
fields: [
{
name: "Field 1",
value: "Hello there"
}
],
image: undefined,
timestamp: undefined,
footer: {
text: "Footer text",
icon_url: undefined
}
}
};
console.log(JSON.stringify(reply));