added price sheet and discord links

This commit is contained in:
ry 2020-01-04 18:38:28 +01:00
parent 30a785ad73
commit d8fa695a64
4 changed files with 54 additions and 16 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 298 KiB

View File

@ -41,12 +41,13 @@ let refunds = {
module.exports = {
name: 'yugen',
updateToken: 'qwertzuiop1234567890',
tos: [ payment, turnaround, refunds, other ],
tos: [payment, turnaround, refunds, other],
socials: {
twitter: 'https://twitter.com/CorgiYugy',
instagram: 'https://instagram.com/CorgiYugy',
patreon: 'https://patreon.com/CorgiYugy',
kofi: 'https://ko-fi.com/CorgiYugy',
trello: 'https://trello.com/b/PTh1X2bw/yugen-the-corgi-commisions'
trello: 'https://trello.com/b/PTh1X2bw/yugen-the-corgi-commisions',
discord: 'https://discord.gg/S9vbP3n'
}
};
};

View File

@ -11,7 +11,10 @@ const exec = require('shell-exec');
const simpleIcons = require('simple-icons');
const con = require('./constants');
let { port, hostname } = {
let {
port,
hostname
} = {
port: 3926
//hostname: '67.182.206.28'
};
@ -24,7 +27,7 @@ app.engine(
extname: 'hbs',
defaultView: 'default',
helpers: {
ifeq: function(a, b, options) {
ifeq: function (a, b, options) {
if (a === b) {
return true;
}
@ -69,13 +72,40 @@ module.exports = (client) => {
layout: 'main',
name: con.name,
host: req.hostname,
item: [ { name: 'TOS', source: '/tos' } ],
social: [
{ name: 'Twitter', link: 'twitter.com/CorgiYugy', icon: simpleIcons.Twitter },
{ name: 'Instagram', link: 'instagram.com/CorgiYugy', icon: simpleIcons.Instagram },
{ name: 'Patreon', link: 'Patreon.com/CorgiYugy', icon: simpleIcons.Patreon },
{ name: 'Ko-Fi', link: 'ko-fi.com/CorgiYugy', icon: simpleIcons['Ko-fi'] },
{ name: 'Trello', link: 'trello.com/b/PTh1X2bw/yugen-the-corgi-commisions', icon: simpleIcons.Trello }
item: [{
name: 'TOS',
source: '/tos'
}],
social: [{
name: 'Twitter',
link: 'twitter.com/CorgiYugy',
icon: simpleIcons.Twitter
},
{
name: 'Instagram',
link: 'instagram.com/CorgiYugy',
icon: simpleIcons.Instagram
},
{
name: 'Patreon',
link: 'Patreon.com/CorgiYugy',
icon: simpleIcons.Patreon
},
{
name: 'Ko-Fi',
link: 'ko-fi.com/CorgiYugy',
icon: simpleIcons['Ko-fi']
},
{
name: 'Discord',
link: 'discord.gg/S9vbP3n',
icon: simpleIcons.Discord
},
{
name: 'Trello',
link: 'trello.com/b/PTh1X2bw/yugen-the-corgi-commisions',
icon: simpleIcons.Trello
}
]
});
});
@ -87,12 +117,16 @@ module.exports = (client) => {
layout: 'tos',
name: con.name,
host: req.hostname,
WillDraw: [ 'Furries', 'Toony', 'Cell Shaded', 'Any Species', 'SFW', 'Candy-/Softgore' ],
WontDraw: [ 'NSFW', 'Hardgore', 'Feral (unless Chibi)', 'Realism', 'Humans', 'Hard fetish (ask)' ],
WillDraw: ['Furries', 'Toony', 'Cell Shaded', 'Any Species', 'SFW', 'Candy-/Softgore'],
WontDraw: ['NSFW', 'Hardgore', 'Feral (unless Chibi)', 'Realism', 'Humans', 'Hard fetish (ask)'],
tos: con.tos
});
});
app.get('/prices', async (req, res) => {
res.sendFile(__dirname + '/assets/images/sheet.png')
})
app.get('/twitter', (req, res) => {
res.redirect(con.socials.twitter);
});
@ -108,8 +142,11 @@ module.exports = (client) => {
app.get('/kofi', (req, res) => {
res.redirect(con.socials.kofi);
});
app.get('/discord', (req, res) => {
res.redirect(con.socials.discord);
});
app.listen(port /* , hostname */, () => {
app.listen(port /* , hostname */ , () => {
console.log(`[ Server ] Listening on ${port}`);
});
};
};