Skip to content

Commit

Permalink
Fixed server cmd and added dectection % for remote
Browse files Browse the repository at this point in the history
  • Loading branch information
Prince527GitHub committed Mar 16, 2024
1 parent ee7301b commit 52710af
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion assets/api/language/detect.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = async function({ client, message }) {
if (!detected.language) return;

detected = {
accuracy: 100,
accuracy: detected.reliable,
language: detected.language
};
} else if (server.type === "libre") {
Expand Down
2 changes: 2 additions & 0 deletions assets/api/time/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ function timeAgo(timestamp) {
}

function toTimestamp(date, type = "f") {
if (!(date instanceof Date)) date = new Date(date);

const timestamp = Math.floor(date.getTime() / 1000);

return `<t:${timestamp}:${type}>`;
Expand Down
10 changes: 5 additions & 5 deletions commands/info/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ module.exports = {
const roleColor = message.guild.members.me.displayHexColor === "#000000" ? "#ffffff" : message.guild.members.me.displayHexColor;

const verificationLevels = {
NONE: 'None',
LOW: 'Low',
MEDIUM: 'Medium',
HIGH: '💢',
VERY_HIGH: '💥'
0: 'None',
1: 'Low',
2: 'Medium',
3: '💢',
4: '💥'
};

const owner = await message.guild.fetchOwner();
Expand Down

0 comments on commit 52710af

Please sign in to comment.