Move bot name to version file

This commit is contained in:
7cc5c4f330d47060 2024-07-28 16:48:46 -04:00
parent f7610415c2
commit f79ccb2275
3 changed files with 6 additions and 5 deletions

View file

@ -9,13 +9,13 @@ module.exports = {
color: c.colors.secondary,
with: [
{
text: settings.name,
text: version.botName,
color: c.colors.primary
}
]
})
c.reply({ text: '' })
const botVersion = version.bot
const botVersion = version.botVersion
let gitCommit
try {
gitCommit = cp.execSync('git rev-parse --short HEAD').toString('UTF-8').split('\n')[0]

View file

@ -80,8 +80,8 @@ module.exports = {
const dBrand = cp.execSync('getprop ro.product.brand').toString('UTF-8').split('\n')[0]
c.reply(gr(c.lang, getMessage(c.lang, 'command.serverinfo.os.android.model'), dBrand + ' ' + dModel, c.colors))
}
c.reply(gr(c.lang, getMessage(c.lang, 'command.serverinfo.botName'), settings.name, c.colors))
let botVersion = version.bot
c.reply(gr(c.lang, getMessage(c.lang, 'command.serverinfo.botName'), version.botName, c.colors))
let botVersion = version.botVersion
let gitCommit
try {
gitCommit = cp.execSync('git rev-parse --short HEAD').toString('UTF-8').split('\n')[0]

View file

@ -1,3 +1,4 @@
{
"bot": "10.0.0-beta.1"
"botName": "UBot Dev",
"botVersion": "10.0.0-beta.1"
}