Change format of presence thing
This commit is contained in:
parent
607ae7d853
commit
3dadfd5340
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ const getGuildCount = require("./getGuildCount")
|
||||||
module.exports = function ({presenceText, presenceType, client}) {
|
module.exports = function ({presenceText, presenceType, client}) {
|
||||||
const {globalPrefix} = require ('../data/config.json')
|
const {globalPrefix} = require ('../data/config.json')
|
||||||
let guildCount = getGuildCount(client)
|
let guildCount = getGuildCount(client)
|
||||||
let regex = [/<guilds>/g,/<prefix>/g];
|
let regex = [/\${guilds}/g,/\${prefix}/g];
|
||||||
let replaceValue = [guildCount, globalPrefix];
|
let replaceValue = [guildCount, globalPrefix];
|
||||||
for(let i = 0; i < regex.length; i++){
|
for(let i = 0; i < regex.length; i++){
|
||||||
presenceText = presenceText.replace(regex[i], replaceValue[i]);
|
presenceText = presenceText.replace(regex[i], replaceValue[i]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue