mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-18 15:01:38 +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) {
|
||||
const data = await fetch(`https://racetime.gg${race.data_url}`).then(a => a.json() as any);
|
||||
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);
|
||||
return;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user