Skip to content

Commit 0343c08

Browse files
committed
sighhhhhhhhhhhhhhhhhhhhhhhhhhhhh
*sighhhhhhhhhhhhhhhhhhhhhhhhhhhhh*
1 parent d24f9cc commit 0343c08

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,13 @@ if (!env.twitchClientSecret || env.twitchClientSecret === 'YOUR_TWITCH_CLIENT_SE
3737
throw new Error('You MUST provide a Twitch client secret in .env!');
3838
}
3939

40-
await getTwitchToken();
41-
console.log(await getStreamerName("57519051"))
42-
4340
// If everything is set up correctly, continue with the bot
4441
import { Client, GatewayIntentBits, REST, Routes, type APIApplicationCommand } from 'discord.js';
4542
import commandsMap from './commands.ts';
4643
import fs from 'fs/promises';
4744
import path from 'path';
4845
import { initTables } from './database.ts';
4946
import { getTwitchToken } from './utils/twitch/auth.ts';
50-
import { getStreamerName } from './utils/twitch/getStreamerName.ts';
5147

5248
const client = new Client({
5349
intents: [

src/utils/twitch/checkIfStreamerIsLive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export async function checkIfStreamersAreLive(): Promise<void> {
8282
// Send a message to the channel
8383
const channel = await client.channels.fetch(guild.guild_channel_id);
8484
await (channel as TextChannel).send(
85-
guild.guild_ping_role ? `<@&${guild.guild_ping_role}> ${streamerName} is now live!` : `${streamerName} is now live!`
85+
`${guild.guild_ping_role ? `<@&${guild.guild_ping_role}>` : null} ${streamerName} is now live!`
8686
);
8787
}
8888
} else {

0 commit comments

Comments
 (0)