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

SyntaxError: invalid syntax #121

Open
aldev814 opened this issue Nov 2, 2023 · 3 comments
Open

SyntaxError: invalid syntax #121

aldev814 opened this issue Nov 2, 2023 · 3 comments

Comments

@aldev814
Copy link

aldev814 commented Nov 2, 2023

I've deployed by docker, and had error below:

srcbot | starting Bot ~@DroneBots
srcbot | Traceback (most recent call last):
srcbot | File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main
srcbot | return _run_code(code, main_globals, None,
srcbot | File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code
srcbot | exec(code, run_globals)
srcbot | File "/app/main/main.py", line 16, in
srcbot | load_plugins(plugin_name.replace(".py", ""))
srcbot | File "/app/main/utils.py", line 12, in load_plugins
srcbot | spec.loader.exec_module(load)
srcbot | File "", line 786, in exec_module
srcbot | File "", line 923, in get_code
srcbot | File "", line 853, in source_to_code
srcbot | File "", line 228, in _call_with_frames_removed
srcbot | File "main/plugins/pyroplug.py", line 209
srcbot | await client.copy_message(sender, chat, msg_id)
srcbot | ^
srcbot | SyntaxError: invalid syntax
srcbot exited with code 1

What's going on here?

@aldev814
Copy link
Author

aldev814 commented Nov 2, 2023

When I reset to commit b126142, it works. What's wrong with the newest version?

@PalashMudi
Copy link

same problem with new code.

@LDQONJ
Copy link

LDQONJ commented Nov 3, 2023

Add a tab indent before "await client.copy_message(sender, chat, msg_id)".
(A4PGT$XRR`}B09I~F85$ 0

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

3 participants