You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! This is to make some changes.
- Language support now added.
- Upgrade version numbering
- Update API to Netro Corporation API.
- Change Copyright to Netro Corporation from TMC.
if((err.message) ? err.message.includes("Command not found") : err.includes("Command not found"))
370
+
if((err.message) ? err.message.includes(app.lang.getLine(userSettings.get("language"),"Command not found")) : err.includes(app.lang.getLine(userSettings.get("language"),"Command not found")))
369
371
data={
370
372
embeds: [{
371
373
title: embedTitle,
@@ -383,7 +385,7 @@ const app = {
383
385
embeds: [{
384
386
title: embedTitle,
385
387
color: embedColor,
386
-
description: `Failed to execute \`${((command.name) ? command.name : command)}\`!`,
388
+
description: `${app.lang.getLine(userSettings.get("language"),"Failed to execute")} \`${((command.name) ? command.name : command)}\`!`,
Copy file name to clipboardExpand all lines: src/app/cmds/General/about.js
+20-20Lines changed: 20 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -8,34 +8,34 @@ module.exports = {
8
8
cooldown: 2,
9
9
aliases: ["botinfo","aboutme"],
10
10
syntax: [],
11
-
execute: async(app,message,args)=>{
11
+
execute: async(app,message,args,userSettings)=>{
12
12
constos=app.modules["os"];// Welcome to os(u)~!
13
13
returnapp.functions.msgHandler(message,{
14
14
embeds: [{
15
-
title: app.config.system.emotes.information+` All about your favorite bot, **${app.client.user.tag}**!`,
15
+
title: `${app.config.system.emotes.information}${app.lang.getLine(userSettings.get("language"),"All about your favorite bot")}, **${app.client.user.tag}**!`,
if(!userSettings)returnapp.functions.msgHandler(message,{embeds: [{color: app.config.system.embedColors.red,description: `${app.config.system.emotes.error} **Could not set to AFK due to missing User Settings.**`}]})
14
13
15
14
varreason=args.slice(0).join(" ")||"";
@@ -23,15 +22,15 @@ module.exports = {
23
22
if(affectedRows.length>0){
24
23
awaitapp.functions.msgHandler(message,{
25
24
embeds: [{
26
-
title: `${app.config.system.emotes.success} You're now AFK${((reason!="" ? ": "+reason: "!"))}`,
25
+
title: `${app.config.system.emotes.success}${app.lang.getLine(userSettings.get("language"),"You're now AFK")}${((reason!="" ? ": "+reason: "!"))}`,
27
26
color: app.config.system.embedColors.lime
28
27
}],
29
28
author: message.author
30
29
},0,true,(asyncmsg=>{
31
30
setTimeout(function(){msg.delete()},6000);
32
31
}));
33
32
}else{
34
-
returnapp.functions.msgHandler(message,{embeds: [{color: app.config.system.embedColors.red,description: `${app.config.system.emotes.error} **Could not set to AFK due to Database Error!**`}]})
33
+
returnapp.functions.msgHandler(message,{embeds: [{color: app.config.system.embedColors.red,description: `${app.config.system.emotes.error} **${app.lang.getLine(userSettings.get("language"),"Could not set to AFK due to Database Error!")}**`}]})
0 commit comments