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

Server Stats and all the images related plugins isn't working #30

Open
Dare-Devill opened this issue Nov 27, 2023 · 0 comments
Open

Server Stats and all the images related plugins isn't working #30

Dare-Devill opened this issue Nov 27, 2023 · 0 comments

Comments

@Dare-Devill
Copy link

Getting this error in /serverstats

[28-Nov-23 02:40:05 - ERROR] - pyrogram.dispatcher - x1 must be greater than or equal to x0
Traceback (most recent call last):
File "/root/vip_url_bot/myenv/lib/python3.8/site-packages/pyrogram/dispatcher.py", line 240, in handler_worker
await handler.callback(self.client, *args)
File "/root/vip_url_bot/TelegramBot/helpers/decorators.py", line 45, in decorator
else: return await func(client, update)
File "/root/vip_url_bot/TelegramBot/plugins/sudo/serverstats.py", line 62, in stats
draw_progressbar(243, int(cpu_percentage))
File "/root/vip_url_bot/TelegramBot/plugins/sudo/serverstats.py", line 31, in draw_progressbar
draw.rectangle((120, coordinate, progress, coordinate-25), fill='#FFFFFF')
File "/root/vip_url_bot/myenv/lib/python3.8/site-packages/PIL/ImageDraw.py", line 301, in rectangle
self.draw.draw_rectangle(xy, fill, 1)
ValueError: x1 must be greater than or equal to x0

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

1 participant