Update GitHub links

This commit is contained in:
Isaac
2021-03-03 10:57:28 +00:00
parent ea8caaa149
commit 3ce51e02b1
6 changed files with 28 additions and 28 deletions

View File

@@ -7,7 +7,7 @@ let { version: current } = require('../package.json');
module.exports = async client => {
if (!client.config.update_notice) return;
const json = await (await fetch('https://api.github.com/repos/eartharoid/DiscordTickets/releases')).json();
const json = await (await fetch('https://api.github.com/repos/discord-tickets/bot/releases')).json();
const update = json[0];
let latest = semver.coerce(update.tag_name);
@@ -20,7 +20,7 @@ module.exports = async client => {
let notice = [];
notice.push(`&6You are currently using &c${current}&6, the latest is &a${update.tag_name}&6.`);
notice.push(`&6Download "&f${update.name}&6" from`);
notice.push(link('&6the GitHub releases page', 'https://github.com/eartharoid/DiscordTickets/releases/'));
notice.push(link('&6the GitHub releases page', 'https://github.com/discord-tickets/bot/releases/'));
console.log(
boxen(client.log.f(notice.join('\n')), {