Skip to content
This repository was archived by the owner on Feb 13, 2020. It is now read-only.

Examples

DDynamic edited this page Dec 3, 2018 · 1 revision

Respond to Message

msg.reply('Hello there!');

Send a Direct Message to the Command Sender

msg.author.send('Hello there!');

Multiply Two Arguments

s! command 2 5

var number = args[0] * args[1];

msg.reply('Your number is: ' + number);

Return a cat picture/make an HTTP request

request('http://aws.random.cat/meow', function (error, response, body) {
    msg.reply(body['file']);
});

Clone this wiki locally