added price sheet and discord links
This commit is contained in:
parent
30a785ad73
commit
d8fa695a64
Binary file not shown.
Before Width: | Height: | Size: 1.3 MiB |
Binary file not shown.
Before Width: | Height: | Size: 298 KiB |
|
@ -47,6 +47,7 @@ module.exports = {
|
|||
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'
|
||||
}
|
||||
};
|
53
server.js
53
server.js
|
@ -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'
|
||||
};
|
||||
|
@ -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
|
||||
}
|
||||
]
|
||||
});
|
||||
});
|
||||
|
@ -93,6 +123,10 @@ module.exports = (client) => {
|
|||
});
|
||||
});
|
||||
|
||||
app.get('/prices', async (req, res) => {
|
||||
res.sendFile(__dirname + '/assets/images/sheet.png')
|
||||
})
|
||||
|
||||
app.get('/twitter', (req, res) => {
|
||||
res.redirect(con.socials.twitter);
|
||||
});
|
||||
|
@ -108,6 +142,9 @@ 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 */ , () => {
|
||||
console.log(`[ Server ] Listening on ${port}`);
|
||||
|
|
Loading…
Reference in New Issue