Allow changing default prefix in config
This commit is contained in:
parent
e0d7ea7a57
commit
1c686016bb
4 changed files with 6 additions and 3 deletions
|
@ -12,6 +12,9 @@ MONGO=mongodb://localhost:27017/esmBot
|
|||
# Put snowflake ID of bot owner here
|
||||
OWNER=
|
||||
|
||||
# Put default prefix here
|
||||
PREFIX=&
|
||||
|
||||
###########
|
||||
# Optional
|
||||
###########
|
||||
|
|
|
@ -9,7 +9,7 @@ module.exports = async (guild) => {
|
|||
const guildDB = new db.guilds({
|
||||
id: guild.id,
|
||||
tags: misc.tagDefaults,
|
||||
prefix: "&",
|
||||
prefix: process.env.PREFIX,
|
||||
warns: {},
|
||||
disabledChannels: [],
|
||||
tagsDisabled: false
|
||||
|
|
|
@ -24,7 +24,7 @@ module.exports = async () => {
|
|||
const newGuild = new database.guilds({
|
||||
id: id,
|
||||
tags: misc.tagDefaults,
|
||||
prefix: "&",
|
||||
prefix: process.env.PREFIX,
|
||||
warns: {},
|
||||
disabledChannels: [],
|
||||
tagsDisabled: false
|
||||
|
|
|
@ -85,7 +85,7 @@ exports.decodeEntities = (string) => {
|
|||
|
||||
// define defaults for prefixes and tags
|
||||
exports.defaults = {
|
||||
prefix: "&"
|
||||
prefix: process.env.PREFIX
|
||||
};
|
||||
exports.tagDefaults = {
|
||||
help: {
|
||||
|
|
Loading…
Reference in a new issue