Remove bot.prefix
This commit is contained in:
parent
a3835de35c
commit
e05e58f867
3 changed files with 3 additions and 4 deletions
|
@ -19,7 +19,7 @@ module.exports = {
|
|||
text: 'Prefix'
|
||||
},
|
||||
{
|
||||
text: c.bot.prefix[0],
|
||||
text: settings.prefix[0],
|
||||
color: settings.colors.primary
|
||||
}
|
||||
]
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -102,7 +102,7 @@ module.exports = {
|
|||
text: 'Prefix'
|
||||
},
|
||||
{
|
||||
text: b.prefix[0],
|
||||
text: settings.prefix[0],
|
||||
color: settings.colors.primary
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue