show the author as what is set in config.json
This commit is contained in:
parent
4ad1032845
commit
506202f30c
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
const { Command } = require('discord-akairo');
|
const { Command } = require('discord-akairo');
|
||||||
const { MessageEmbed } = require('discord.js');
|
const { MessageEmbed } = require('discord.js');
|
||||||
|
const { ownerID } = require('../../config.json');
|
||||||
|
|
||||||
class aboutCommand extends Command {
|
class aboutCommand extends Command {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
@ -17,7 +18,7 @@ class aboutCommand extends Command {
|
||||||
async exec(message) {
|
async exec(message) {
|
||||||
const aboutEmbed = new MessageEmbed()
|
const aboutEmbed = new MessageEmbed()
|
||||||
.setColor('#ff9900')
|
.setColor('#ff9900')
|
||||||
.setAuthor('Supositware#1616', this.client.user.avatarURL)
|
.setAuthor(`${this.client.users.get(ownerID).username}#${this.client.users.get(ownerID).discriminator} (${ownerID})`, this.client.user.avatarURL)
|
||||||
.setTitle('About me')
|
.setTitle('About me')
|
||||||
.setURL('https://gitlab.com/LoicBersier/DiscordBot')
|
.setURL('https://gitlab.com/LoicBersier/DiscordBot')
|
||||||
.setDescription('This bot is made using [discord.js](https://github.com/discordjs/discord.js) & [Discord-Akairo](https://github.com/discord-akairo/discord-akairo)\nHelp command from [hoshi](https://github.com/1Computer1/hoshi)\n* [Rantionary](https://github.com/RantLang/Rantionary) for there dictionnary.\nThanks to Tina the Cyclops girl#5759 for inspiring me for making this bot!')
|
.setDescription('This bot is made using [discord.js](https://github.com/discordjs/discord.js) & [Discord-Akairo](https://github.com/discord-akairo/discord-akairo)\nHelp command from [hoshi](https://github.com/1Computer1/hoshi)\n* [Rantionary](https://github.com/RantLang/Rantionary) for there dictionnary.\nThanks to Tina the Cyclops girl#5759 for inspiring me for making this bot!')
|
||||||
|
|
Loading…
Reference in a new issue