Open steff1234 opened 4 years ago
Hi! The Discord.py library made several breaking changes in version 1.0, so bots like this one that were written with older versions of Discord.py wouldn't work. I just released version 1.4, which should now work with newer versions of Discord.py.
Can't make it work. get this error
discord@Ubuntu-1804:~/DiscordBot/sglobbylink-discord.py$ python3 main.py LOADED: sglobbylink-discord.py v1.32 by Mr Peck. Ignoring exception in on_message Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/discord/client.py", line 270, in _run_event await coro(*args, kwargs) File "main.py", line 300, in on_message await client.send_message(message.channel, "Saved " + message.author.name + "'s Steam ID.") AttributeError: 'Client' object has no attribute 'send_message' Ignoring exception in on_message Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/discord/client.py", line 270, in _run_event await coro(*args, *kwargs) File "main.py", line 237, in on_message await client.send_message(message.channel, "
!steamid
usage: " + get_steam_id_instructions()) AttributeError: 'Client' object has no attribute 'send_message' Ignoring exception in on_message Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/discord/client.py", line 270, in _run_event await coro(args, kwargs) File "main.py", line 354, in on_message await client.send_message(message.channel, "Lobby not found for " + message.author.name + ": Steam thinks you're online but not playing a game.") AttributeError: 'Client' object has no attribute 'send_message' Ignoring exception in on_message Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/discord/client.py", line 270, in _run_event await coro(*args, **kwargs) File "main.py", line 354, in on_message await client.send_message(message.channel, "Lobby not found for " + message.author.name + ": Steam thinks you're online but not playing a game.") AttributeError: 'Client' object has no attribute 'send_message' ^CUnclosed client session client_session: <aiohttp.client.ClientSession object at 0x7f8a9f644c18> Unclosed connector