ctmatthews / sglobbylink-discord.py

[NO LONGER WORKING]: Discord bot using discord.py that posts the link to your current Steam game lobby when you type !lobby, so other people can join your game without having to be on your friend list.
8 stars 3 forks source link

Can't make it work. get this error #3

Open steff1234 opened 4 years ago

steff1234 commented 4 years ago

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

ctmatthews commented 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.