Add example module
This commit is contained in:
parent
b80de72d0b
commit
bcfa5177de
8
modules/hello_world/header.json
Normal file
8
modules/hello_world/header.json
Normal 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"
|
||||
}
|
27
modules/hello_world/index.js
Normal file
27
modules/hello_world/index.js
Normal 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));
|
Loading…
Reference in New Issue
Block a user