Tomato6966 / Multipurpose-discord-bot

A multipurpose bot, a clan bot, a all in one bot. The one bot u need for ur server originally made as Milrato discord Bot and by Tomato6966.
https://milrato.com
MIT License
599 stars 614 forks source link

Bug report #131

Closed Rocky-pup closed 1 year ago

Rocky-pup commented 2 years ago

What's your nodejs Version.

16.14.0

What's the version you downloaded the bot?

latest sharded-mongo

Desktop (please complete the following information):

  • OS: windows 8.1
  • Version latest

Describe the bug

in command rank in voicerank section rank: always 0, milrato bot have same(see screenshot)

To Reproduce

  1. Execute the Command 'rank'
  2. See uncorrect information in voicerankk section

Expected behavior

after Rank: line need to be rank in leaderboard, not 0

Additional context, text and screenshots!

Milrato: image

Source code: image

Mikey69YT-BotDeveloper commented 2 years ago

let channel = guild.channels.cache.get(client.musicsettings.get(player.guild, "channel")); ^^^

SyntaxError: Lexical declaration cannot appear in a single-statement context at Object.compileFunction (node:vm:352:18) at wrapSafe (node:internal/modules/cjs/loader:1033:15) at Module._compile (node:internal/modules/cjs/loader:1069:27) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18)

I have that error and I can't solve it
Rocky-pup commented 2 years ago

and how does this relate to my topic?

riciuuu commented 2 years ago

Hi, you solved this problem, because I would like you to tell me the solution? Thank you !

Rocky-pup commented 2 years ago

No, i waiting for

l0g4n1337 commented 2 years ago

I have the same problem too. Then I add that, after setting up a channel for ranking, when someone does a level up they are not posted in the channel I have chosen, but they are posted in the ch where the user writes. Discord_7aVhKETWN9 Discord_kTSO59vU3O Discord_ZNTxQNmXaD

l0g4n1337 commented 2 years ago

So, I tried the "main branch" and the above problems (voice rank and the problem that the bot does not place levelups in the assigned channel) are solved.

However, compared to the sharded version it has some problems with the leaderboard. Or to be more specific, it's not really a problem. When the leaderboard is requested, 3 tables are published, one that counts the messages, one that counts the time and another that repeats the first. for text statistics only. Now it would only be appropriate if Tomato could take what works from both of them and fix all 2 branches making them the same and working.

In the meantime, I'll try to make some attempts.