Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
Version 3.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Paultje52 committed Feb 21, 2019
1 parent 0e16c3f commit 0ee90e3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The BananenBase is a NodeJS framework for making discord bots. You can use it ve

## Features
- Easy to use: Only one line of code required to setup and load everything
- Fast: Everything is optimised, so you can use a fast Discord bot
- Fast: Everything is optimised, so you can make a fast Discord bot
- Easy databases: Auto install databases and use them with a simple get/set
- Custom settings:
- Guild - Every guild
Expand Down Expand Up @@ -91,7 +91,7 @@ module.exports = class ping extends command {
}
});
}

async run(message, args) {
let start = Date.now();
let msg = await message.channel.send("Pinging...");
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bananenbase",
"version": "3.0.1",
"description": "De base van de BananenBot",
"version": "3.0.2",
"description": "Thé discord.js AND express framework!",
"main": "src/index.js",
"dependencies": {
"chalk": "^2.4.2",
Expand Down
7 changes: 4 additions & 3 deletions src/bot/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,14 @@ module.exports = async (client, message) => {

// A custom embed
message.embed = function() {
if (this.client.settings.embed) {
if (message.guild.settings.embed) {
let embed = new discord.RichEmbed();
if (message.guild.settings.embed.footerImage === "BOTAVATAR") message.guild.settings.embed.footerImage = `https://cdn.discordapp.com/avatars/${this.client.user.id}/${this.client.user.avatar}.png`;
if (message.guild.settings.embed.color) embed.setColor(message.guild.settings.embed.color);
if (message.guild.settings.embed.thumbnail) embed.setThumbnail(message.guild.settings.embed.thumbnail);
if (message.guild.settings.embed.footerText && !message.guild.settings.embed.footerImage) embed.setFooter(message.guild.settings.embed.footerText);
else if (!message.guild.guild.embed.footerText && message.guild.settings.embed.footerImage) embed.setFooter("", messahe.guild.settings.embed.footerImage);
else if (message.guild.settings.embed.footerText) embed.setFooter(message.guild.settings.embed.footerText);
else if (!message.guild.settings.embed.footerText && message.guild.settings.embed.footerImage) embed.setFooter("", message.guild.settings.embed.footerImage);
else if (message.guild.settings.embed.footerText && message.guild.settings.embed.footerImage) embed.setFooter(message.guild.settings.embed.footerText, message.guild.settings.embed.footerImage);
if (message.guild.settings.embed.time) embed.setTimestamp();
if (message.guild.settings.embed.url) embed.setURL(message.guild.settings.embed.url);
return embed;
Expand Down

0 comments on commit 0ee90e3

Please sign in to comment.