discord.js

JavaScript
const Discord = require('discord.js');
const client = new Discord.Client();
const guildPrefix = "!"

client.on("ready", () => {
 console.log(`Logged in as ${client.user.tag}`) 
})

client.on('message', message => {
  if (message.content === `${guildPrefix}Ping`) {
    message.channel.send('Pong!');
  }
});

client.login('token');const Discord = require('discord.js');
const client = new Discord.Client();

client.on('ready', () => {
  console.log(`Logged in as ${client.user.tag}!`);
});

client.on('message', msg => {
  if (msg.content === 'ping') {
    msg.reply('Pong!');
  }
});

client.login('token');const Discord = require('discord.js');
const client = new Discord.Client();
client.on('ready', () => {
  console.log(`Logged in as ${client.user.tag}!`);
  client.user.setStatus("dnd")
});
client.on('message', msg => {
if (msg.content == "ping") {
message.channel.send("pong!")
};
});
client.login('your token here');
Source

Also in JavaScript: