Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError #5

Open
00-Python opened this issue Sep 2, 2019 · 4 comments
Open

ModuleNotFoundError #5

00-Python opened this issue Sep 2, 2019 · 4 comments

Comments

@00-Python
Copy link

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
Copy link
Author

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'

@FrxstyS3c
Copy link

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'

@swagkarna
Copy link

swagkarna commented Jul 30, 2020

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

@Znunu
Copy link

Znunu commented Aug 17, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants