Remove bot.prefix

This commit is contained in:
7cc5c4f330d47060 2024-10-12 01:35:09 -04:00
parent a3835de35c
commit e05e58f867
Signed by: 7cc5c4f330d47060
SSH key fingerprint: SHA256:e+4tcZut1nBpe10PqjaO+Rvie0Q7W4qIvFzcUw+7riA
3 changed files with 3 additions and 4 deletions

View file

@ -19,7 +19,7 @@ module.exports = {
text: 'Prefix'
},
{
text: c.bot.prefix[0],
text: settings.prefix[0],
color: settings.colors.primary
}
]

View file

@ -19,11 +19,10 @@ const loadSettings = function (uuid) {
}
module.exports = {
load: (b) => {
b.prefix = settings.prefix
b.lastCmd = 0
b.on('chat', (data) => {
const fullCommand = data.message
for (const prefix of b.prefix) {
for (const prefix of settings.prefix) {
if (fullCommand.startsWith(prefix)) {
const command = fullCommand.slice(prefix.length)
b.runCommand(data.username, data.nickname, data.uuid, command, data.type, data.subtype, prefix)

View file

@ -102,7 +102,7 @@ module.exports = {
text: 'Prefix'
},
{
text: b.prefix[0],
text: settings.prefix[0],
color: settings.colors.primary
}
]