GitLab's annual major release is around the corner. Along with a lot of new and exciting features, there will be a few breaking changes. Learn more here.

Commit c33c3299 authored by Loïc Bersier's avatar Loïc Bersier 😎
Browse files

Made donations link be stored in config.json


Signed-off-by: Loïc Bersier's avatarloicbersier <loic.bersier1@gmail.com>
parent 35b882cf
const { Command } = require('discord-akairo');
const { donations } = require('../../config.json');
class donateCommand extends Command {
constructor() {
......@@ -15,10 +16,18 @@ class donateCommand extends Command {
}
async exec(message) {
if (donations === undefined) return message.channel.send('No donations has been setup on that bot.');
let desc = 'If you decide to donate, please use the feedback command to let the owner know about it so he can put you in the about and donator command.';
donations.forEach(m => {
desc += `\n${m}`;
});
const Embed = this.client.util.embed()
.setColor(message.member ? message.member.displayHexColor : 'NAVY')
.setTitle('Donation link')
.setDescription('If you decide to donate, please use the feedback command to let the owner know about it so he can put you in the about and donator command\n[Paypal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KEMESDXL8Q5YY&source=url)\nYou can give [BAT token](https://namejeff.xyz) on my website');
.setDescription(desc);
return message.channel.send(Embed);
}
......
......@@ -18,6 +18,10 @@
"twiConsumerSecret": "Twitter consumer key secret", //optional | for the twitter command
"twiToken": "Twitter token", //optional | for the twitter command
"twiTokenSecret": "Twitter token secret", //optional | for the twitter command
"donations": [ //optional | Donations link to appear in the donation command, markdown can be used in here
"ETH adresse: 0x0bc758F572a7D9689e3507C1dd12451Ae4521252",
"BTC adresse: bc1q28gdt7hzlml0grmvvextpxeekz5fss7tm5lfsp"
],
"proxy": [ //Optional | Used for youtube-dl
{
"ip": "IP:PORT",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment