-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelp.js
35 lines (33 loc) · 1.51 KB
/
help.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
const { Command } = require('discord.js-commando')
const { RichEmbed } = require('discord.js')
module.exports = class HelpCommand extends Command {
constructor(client) {
super(client, {
group: 'fpl',
name: 'help',
memberName: 'help',
description: 'Displays a list of available commands, or detailed information for a specified command',
})
}
run(message) {
const prefix = process.env.BOT_PREFIX
const embed = new RichEmbed()
.setTitle('List of commands')
.setColor(65415)
.setThumbnail(`https://fantasy.premierleague.com/static/libsass/plfpl/dist/img/facebook-share.png`)
.addField('----------------------',
`**${prefix}info [name]**\n` +
'Get player info by name\n\n' +
`**${prefix}fixtures [gameweek]**\n` +
'Get the latest fixtures in GMT+8 time\n\n' +
`**${prefix}deadline**\n` +
'Get current week\'s deadline\n\n' +
// `**${prefix}team [team ID]**\n` +
// 'Get fpl team by id\n\n' +
// `**${prefix}league [league ID]**\n` +
// 'Get league standings by id\n\n' +
'***Report any issues at [Github](https://github.com/adifaidz/fpl-discord-bot)***')
.setFooter('fantasy.premierleague.com', 'https://fantasy.premierleague.com/static/libsass/plfpl/dist/img/facebook-share.png')
message.channel.send(embed)
}
}