discord.js tagging the author

JavaScript
// this will require the discord.js module.
const Discord = require('discord.js')

// this will create a new discord client.
const client = new Discord.Client();

/* requires you to setup a config.json file. See (t.ly/851k) -
Links to discord.js guide for config files. */
const {
    prefix,
    token
} = require('./config.json');

// triggers one time, logging if bot is running.
client.on('ready', () => {
    console.log('Ready!');
});

// this will listen for messages.
client.on('message', message => {
    console.log(message.content);
});

// start of your commands.
client.on('message', message => {
  
   if (args[0] = (`${prefix}example`)) {
        message.channel.send(`Hello ${message.author}!`)
   }
})

client.login('your-token')
Source

Also in JavaScript: