简体   繁体   中英

Why is our "!top10" command not displaying the users properly?

I am trying to figure out what is going on with the "!top10" command of our bot. The guy that made the bot is no longer in touch, and he stopped hosting it. I was able to add the source files to GitHub at https://github.com/tye-beach/AventusInviteBot and got the bot back online. However, some functionality seems to be missing.

Could someone help me figure out why the command "!top10" isn't displaying the users properly? It seems to come back with an empty array as you can see in the picture located here:

https://drive.google.com/file/d/1dwAv2VwTjRmgL7QhlbNiMIYE5Rt3BmLi/view

Thanks in advance!

First of all, this is using an outdated version of discord.py, v0.16.11, that isn't supported anymore. You should look into migrating to v1 .

The default data that this bot seems to use is empty, and if server is not set, it never loads the invite data .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM