mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-23 00:23:17 +00:00
Update index.js
This commit is contained in:
parent
b4818b6ca4
commit
c5ca2ec569
6
index.js
6
index.js
@ -20,8 +20,10 @@ client.on('message', async msg => {
|
|||||||
var guildms = client.guilds.find(x => x.name === 'Musix Support')
|
var guildms = client.guilds.find(x => x.name === 'Musix Support')
|
||||||
var channelms = guildms.channels.find(x => x.name === 'log')
|
var channelms = guildms.channels.find(x => x.name === 'log')
|
||||||
const embed = new Discord.RichEmbed()
|
const embed = new Discord.RichEmbed()
|
||||||
.setTitle(`${msg.author.id}, ${msg.member.displayName}`)
|
.setTitle(`**User:** ${msg.author.id}, ${msg.member.displayName}`)
|
||||||
.addField(`Message content: ${msg.content}`, `Message Guild: ${msg.guild.name}`)
|
.addField(`**Message channel:** ${msg.channel.name}`, `Message Guild: ${msg.guild.name}`)
|
||||||
|
.setFooter(`**Message Content:** ${msg.content}`)
|
||||||
|
.setColor('#b50002')
|
||||||
channelms.send(embed)
|
channelms.send(embed)
|
||||||
if (msg.content === `${PREFIX}ping`) {
|
if (msg.content === `${PREFIX}ping`) {
|
||||||
msg.channel.send(`My current Ping: **${Math.floor(client.ping * 10) / 10} ms**.`)
|
msg.channel.send(`My current Ping: **${Math.floor(client.ping * 10) / 10} ms**.`)
|
||||||
|
Loading…
Reference in New Issue
Block a user