Is this still supposed to work?
nefarius opened this issue · 2 comments
nefarius commented
Heya!
I was just trying to set up this plugin in a fresh docker'ized environment of NodeBB v1.10.1 and after the plugin installation & restart in the logs I get:
Missing translation "discord-notification:title"
2018-09-10T20:44:11.844Z [22] - error: /assets/templates/admin/plugins/discord-notification.js
Error: ENOENT: no such file or directory, open '/usr/src/nodebb/build/public/templates/admin/plugins/discord-notification.tpl'
Admin panel simply freezes while the Browser console spits this out:
That's not supposed to look like that as well I guess:
If you need more info, I can provide
Thanks!
nefarius commented
It works now! I had to manually copy these two missing files into the container:
wget "https://raw.githubusercontent.com/amargon/nodebb-plugin-discord-notification/master/languages/en-GB/discord-notification.json" -P /usr/src/nodebb/build/public/language/en-GB
wget "https://raw.githubusercontent.com/amargon/nodebb-plugin-discord-notification/master/public/templates/admin/plugins/discord-notification.tpl" -P /usr/src/nodebb/build/public/templates/admin/plugins
Now I just need to find out if I can also fix the broken special chars and avatar in the payload as well:
Update: pardon the spam, the Avatar is my fault, the Discord servers can't access the avatar image while the Webserver is firewall'ed during maintenance
Deleted user commented
I wonder why they were missing