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
fdb012be2d
commit
02d6d42173
6
index.js
6
index.js
@ -27,6 +27,9 @@ client.on('ready', () => { //startup stuff
|
|||||||
|
|
||||||
client.on('message', async msg => {
|
client.on('message', async msg => {
|
||||||
if (!msg.guild || msg.author.bot) return undefined;
|
if (!msg.guild || msg.author.bot) return undefined;
|
||||||
|
if (msg.content.toUpperCase().startsWith(`MUSIX`)) {
|
||||||
|
msg.channel.send('-help to see my commands.')
|
||||||
|
}
|
||||||
if (msg.content.startsWith(`${PREFIX}`)) {
|
if (msg.content.startsWith(`${PREFIX}`)) {
|
||||||
if (msg.content === '-test') {
|
if (msg.content === '-test') {
|
||||||
if (msg.author.username === 'Matte') {
|
if (msg.author.username === 'Matte') {
|
||||||
@ -53,9 +56,6 @@ client.on('message', async msg => {
|
|||||||
msg.channel.send(`My current ping is ${client.ping}`)
|
msg.channel.send(`My current ping is ${client.ping}`)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (msg.content.toUpperCase().startsWith(`MUSIX`)) {
|
|
||||||
msg.channel.send('-help to see my commands.')
|
|
||||||
}
|
|
||||||
if (msg.content === `${PREFIX}help`) {
|
if (msg.content === `${PREFIX}help`) {
|
||||||
const embed = new Discord.RichEmbed()
|
const embed = new Discord.RichEmbed()
|
||||||
.setTitle('Commands for Musix!')
|
.setTitle('Commands for Musix!')
|
||||||
|
Loading…
Reference in New Issue
Block a user