Skip to content

Commit

Permalink
Add Embed Avatar (#4)
Browse files Browse the repository at this point in the history
* Add avatar to embed
* bump version
  • Loading branch information
JKTUNING authored Sep 13, 2023
1 parent a787efc commit 1d040ef
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
Binary file added helpers/icon.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flux_updater",
"version": "1.0.5",
"version": "1.0.6",
"description": "Flux node auto update service",
"main": "flux_updater.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/Utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function compareVersion(remoteVersion, localVersion) {

return remoteVersionPatch > localVersionPatch;
} catch (error) {
console.log("Error comparing versions");
console.log("error comparing versions");
return false;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/services/discord.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async function discordSendEmbed(embed) {
if (discordClient) {
discordClient.send({
username: `FluxNode`,
avatarURL: `https://i.imgur.com/AfFp7pu.png`,
avatarURL: `https://raw.githubusercontent.com/JKTUNING/Flux-Updater/main/helpers/icon.jpg`,
embeds: [embed],
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/services/fluxUpdater.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async function checkRemoteFluxVersion() {
return 0;
}
} catch (error) {
console.log("error checking remove flux version");
console.log("error checking remote flux version");
return 0;
}
}
Expand Down

0 comments on commit 1d040ef

Please sign in to comment.