This snippet sends back the text of the message by using its ID which you pass through your message. The command is `!quote MESSAGE_ID`.
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
let event = context.params.event;
if (context.params.event.content.startsWith('!quote')) {
let message = await lib.discord.channels['@0.2.2'].messages.retrieve({
message_id: event.content.split(' ').slice(1).join(' '),
channel_id: event.channel_id,
});
await lib.discord.channels['@0.2.2'].messages.create({
channel_id: event.channel_id,
content: message.content,
});
}