mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-18 18:31:39 +01:00
fix racetime command
This commit is contained in:
@@ -17,7 +17,7 @@ export default new Command({
|
|||||||
for (const race of races.current_races) {
|
for (const race of races.current_races) {
|
||||||
const data = await fetch(`https://racetime.gg${race.data_url}`).then(a => a.json() as any);
|
const data = await fetch(`https://racetime.gg${race.data_url}`).then(a => a.json() as any);
|
||||||
for (const racer of data.entrants) {
|
for (const racer of data.entrants) {
|
||||||
if (racer.twitch_name === streamer?.username) {
|
if (racer.user.twitch_name === streamer?.username) {
|
||||||
await sendMessage(`https://racetime.gg${data.url}`, msg.messageId);
|
await sendMessage(`https://racetime.gg${data.url}`, msg.messageId);
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user