Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Latest Version Error. #3

Closed
BenedictThompson-zz opened this issue Jan 8, 2017 · 3 comments
Closed

Latest Version Error. #3

BenedictThompson-zz opened this issue Jan 8, 2017 · 3 comments
Assignees
Labels

Comments

@BenedictThompson-zz
Copy link

I updated to the latest version but on server start, I get this error:

JC3MP SERVER/packages/justcord-3-master/util.js:3 return eval(`${template.replace(//g, '\\')}``);
^

TypeError: Cannot read property 'replace' of undefined
at evalTemplate (/home/JamesandJohn/JC3MP SERVER/packages/justcord-3-master/util.js:3:34)
at formatTopic (/home/JamesandJohn/JC3MP SERVER/packages/justcord-3-master/jcevents.js:31:12)
at Timeout.setTimeout (/home/JamesandJohn/JC3MP SERVER/packages/justcord-3-master/jcevents.js:62:14)
at tryOnTimeout (timers.js:232:11)
at Timer.listOnTimeout (timers.js:202:5)
`

@mdcfe mdcfe self-assigned this Jan 9, 2017
@mdcfe mdcfe added the question label Jan 9, 2017
@mdcfe
Copy link
Owner

mdcfe commented Jan 9, 2017

You need to keep updating your config when you update Justcord to ensure you include all of the new values. This particular error is caused by not specifying the template for chat the Discord topic updater (formatting.gameToDiscord.topic in config.json).

I'll work on setting default values to the config later on, and hopefully once I've finalised 1.0 the config shouldn't change as frequently.

Let me know how you get on.

@BenedictThompson-zz
Copy link
Author

Ok!

@mdcfe
Copy link
Owner

mdcfe commented Jan 9, 2017

Apologies, misread the trace; it's the topic formatting you need to set, not the chat formatting.

@mdcfe mdcfe mentioned this issue Jan 11, 2017
10 tasks
@mdcfe mdcfe closed this as completed Feb 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants