From 6b52f7cd7b246b22f4646c5ad838e2103e04cde2 Mon Sep 17 00:00:00 2001 From: zoffline Date: Wed, 27 Jan 2021 11:22:03 -0500 Subject: [PATCH] Fix var reference Thanks for testing @oldnapalm! --- discord_bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord_bot.py b/discord_bot.py index d67d873..0d013fa 100644 --- a/discord_bot.py +++ b/discord_bot.py @@ -33,7 +33,7 @@ class DiscordBot(discord.Client): if message.author.id == self.user.id: return if message.content == '!online': - await message.channel.send('%s riders online' % len(online)) + await message.channel.send('%s riders online' % len(zwift_offline.online)) elif message.content == '!help' and self.help_msg: await message.channel.send(self.help_msg) elif message.content == '!ping':