Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Configuration property "moderation" is not defined [SOLVED] #8

Open
Tr0j4n9 opened this issue Sep 15, 2018 · 9 comments
Open
Labels
Fixed - 4 Reference Known Issue question Further information is requested

Comments

@Tr0j4n9
Copy link

Tr0j4n9 commented Sep 15, 2018

Hello,
I am getting this error while running with pm2, yarn and node bot/bot.js

    throw new Error('Configuration property "' + property + '" is not defined');
    ^

Error: Configuration property "moderation" is not defined
    at Config.get (/root/boxytipbot/node_modules/config/lib/config.js:203:11)
    at Object.<anonymous> (/root/boxytipbot/bot/bot.js:8:25)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:383:7)
    at startup (bootstrap_node.js:149:9```


Thanks for your help!
@MSFTserver
Copy link
Owner

do you have this section in your config file?

"moderation":{
"pm2Name": "TipBot",
// Roles that have access to all commands.
"perms": ["Admin","Moderator","Community Leader","Bots"],
// Bot Devs!
"botDev": "Bot Developer",
// Channel to log the bots moderation..
"logchannel": "429853685179351050",
//channel that the tip message will reply in if Multi or Role tip is used.
"botspamchannels": ["429134627823812612", "429852470886268929"]
}

@Tr0j4n9
Copy link
Author

Tr0j4n9 commented Sep 15, 2018

Yes, I do

@MSFTserver
Copy link
Owner

if you did it wouldnt be telling you you didn't though

@ProjectHelixCoin
Copy link
Contributor

#9

@MSFTserver
Copy link
Owner

that could also be the problem will merge #9 today

@MSFTserver MSFTserver self-assigned this Sep 17, 2018
@MSFTserver MSFTserver added the question Further information is requested label Sep 17, 2018
@feltoxXx
Copy link
Contributor

I get this same error, the problem exists because there is no channel with that ID... if you put a correct ID channel the bot will go smooth...

I am thinking in a way to allow this as a feature triggeable from the config itself... whether we want or not the log file in a channel or a file...

@MSFTserver
Copy link
Owner

originally that should have been tied into debug config option, but i think as things progressed with the last group of devs working on this from the original coin i helped buld this for they didnt use it properly after they switched most stuff to switch cases

@ghost
Copy link

ghost commented Jan 4, 2019

Whats is the log channel and botspamchannels?
Are we suppose to change this?
Where do these numbers come from?

@MSFTserver
Copy link
Owner

bot spam channel is the default channel where people can use the commands like deposit, log channel is used for bot logging basically everything printed to console also goes to that channel so you don't have to monitor it from the bots end, to get the channels ID you have to turn on developer mode in settings of discord and either right click and select copy channel id or you can type \#Channel-Name and discord will instead print out its id like in the example below

img

Sent from my Galaxy Note5 using FastHub

@MSFTserver MSFTserver reopened this Jan 4, 2019
@MSFTserver MSFTserver changed the title Error: Configuration property "moderation" is not defined Error: Configuration property "moderation" is not defined [SOLVED] Jan 16, 2019
@MSFTserver MSFTserver removed their assignment Jan 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed - 4 Reference Known Issue question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants