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