Idisagree icon indicating copy to clipboard operation
Idisagree copied to clipboard

ModuleNotFoundError

Open 00-Python opened this issue 5 years ago • 4 comments

When You run the runontarget.py i get this error message.

$python3 RunOnTarget.py Traceback (most recent call last): File "RunOnTarget.py", line 3, in import discord ModuleNotFoundError: No module named 'discord'

Any Help? Thanks

00-Python avatar Sep 02 '19 03:09 00-Python

Well I figuered out i just had to pip3 discord.py and that solved that but now i get a different error after it starts correctly.

Ignoring exception in on_message Traceback (most recent call last): File "/home/jw/.local/lib/python3.7/site-packages/discord/client.py", line 270, in _run_event await coro(*args, **kwargs) File "RunOnTarget.py", line 15, in on_message await client.send_message(message.channel, msg) AttributeError: 'Client' object has no attribute 'send_message'

00-Python avatar Sep 02 '19 03:09 00-Python

I have the same error about channel msg with RunOnTarget.py

Ignoring exception in on_message Traceback (most recent call last): File "/home/jw/.local/lib/python3.7/site-packages/discord/client.py", line 270, in _run_event await coro(*args, **kwargs) File "RunOnTarget.py", line 15, in on_message await client.send_message(message.channel, msg) AttributeError: 'Client' object has no attribute 'send_message'

FrxstyS3c avatar Jul 30 '20 09:07 FrxstyS3c

I have the same error about channel msg with RunOnTarget.py

Ignoring exception in on_message Traceback (most recent call last): File "/home/jw/.local/lib/python3.7/site-packages/discord/client.py", line 270, in _run_event await coro(*args, **kwargs) File "RunOnTarget.py", line 15, in on_message await client.send_message(message.channel, msg) AttributeError: 'Client' object has no attribute 'send_message'

Just edit RunOnTarget.py and enter the code below await message.channel.send(msg) Note:Remove this command. await client.send_message(message.channel, msg) if it works just inform me.I think I finally fixed the problem..If you get any error just comment it

swagkarna avatar Jul 30 '20 12:07 swagkarna

I forked the repository, fixed the bug, fixed some more bugs and made it possible to navigate the filesystem https://github.com/Znunu/Idisagree

Znunu avatar Aug 17 '20 16:08 Znunu