Jump to content

Output to discord

Pending 2.2.0

Alfawolf
Alfawolf

Posted

Hey, Was wondering if there is any chance you would add the leaderbords to discord? I  have a solution to get them to discord, but thats not how i like to work. And it would be great because in that way i can make an all time highest score thru some coding in my bot.

  • Administrator
Steenamaroo

Posted

Hey,
I hadn't really thought about it but, yeah, I'm sure I could do that.
When you say leaderboards, what data, or options, would you be wanting specifically?

Alfawolf

Posted

Hey,

thanks for the reply.

The top one is certainly the most prominent.
But i have noticed that the embeds as inline only take 25 cats max.
 Splitting them up does not look nice. So that could be put in 1 block or as i did it for now.
 Unless you have a other solution, but that does require some preparation in the code. Fear that it could be a lot of work.
 But to go further, the top 30 maybe...maybe not.
 At first I also thought of the personal scores, but that requires a command via a bot and mmmmm, that doesn't seem like a good idea to me, although there is a lot of demand for it.

Turning this on and off via the config would be useful.
Also maybe the option to rename or select the cats separately which are shown in discord.... a matter of appealing to a wide audience.
To continue, the option to delete the previous output and re-send it, so that the channel on discord only posts 1 message at a time, but that happens again via the bot I noticed. Don't think this can be accomplished via the plugin. Furthermore, but I also fear that this would work without an extra output in a separate channel so that an al time high list can be generated.
I try this now with putting the top one in a separate channel to calculate this info via the bot, but again, a lot of work.
I also don't know if there is actually a size limit for a plugin. I don't think so, but you'll know better. But let's just say for the sake of smooth operation, yes there is a limit, so you will probably have to make some compromises here and there.
Not everything will work to achieve this, I certainly understand that.
In the attachments I have sent 2 screenshots, 1 with the limitation of the embeds.
And 1 with how I show it now in my test discord.
Which I personally don't think is that bad. This is only for the top one output.

I've also included your plugin where you can see how I'm trying to convert the list to discord, but that's pretty basic and probably not at all how you would do it. But then you have an idea.
The changes start at line 1550.

And yes I know, my code looks like a five year old wrote it, but I taught myself...just enough to have fun creating things that I need for myself. It's my first time trying it with a plugin.

sstlb.png

sstlb01.png

PlayerRanks.cs

  • Administrator
Steenamaroo

Posted

That's really cool, thanks for sharing!
I'll make a note of all of this and take a look at it next time I'm on the local server. 👍

  • Love 1
Alfawolf

Posted

No problem, just happy to help. And you should do tutorials, your code is easy to learn from.

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.