Author Topic: Command for points/hours leaderboard for chat  (Read 6073 times)

0 Members and 1 Guest are viewing this topic.

MissLorzz

  • Youngling
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
  • Twitch Name: MissLorzz
Command for points/hours leaderboard for chat
« on: October 28, 2015, 04:06:04 PM »
Hey!

I'm not sure if this is a thing already that DeepBot can do, I've used the forum search option and couldn't really find much information on this.

There's some bots out there that can display, say top 10 most points or most hours when a viewer types a command into the chat.

I was trying to look for something like that on the DeepBot wiki under the custom command option to create on myself, but can't see anything that can make up a leaderboard. I know there's a !top x command that can be used by admins, but I'm looking more of a viewer command that displays a top 10.

If there is something like that within DeepBot, could you point me to the direction on how to create one please?

If not, it might be a cool command to feature in. Sometimes it makes the viewers get a little competitive trying to be on top of the leaderboard or at least top 10 haha!

Thank you :)

« Last Edit: October 28, 2015, 04:22:35 PM by MissLorzz »

SinNoAria

  • Youngling
  • *
  • Posts: 24
  • Karma: +0/-0
    • View Profile
    • SinNoAria YT
  • Twitch Name: SinNoAria
Re: Command for points/hours leaderboard for chat
« Reply #1 on: October 28, 2015, 10:45:28 PM »
You could always make a command that then triggers the top 10 command.

Example:

Command: !pointleader

Run as: User (Elevated Access) or Bot

Command Chaining:
Command: !top @target@[1] 10
Run After: 1 Secs
Admin Access: Checked

Then do a writeup letting people know that the format is !pointleader
  • where x is a digit number from 1 to 10. (or whatever you want it to be)


The reason why I wrote it as !top @target@[1] 10 is because anything after @target@[1] would be ignored anyways. the 10 is so if no target is written, it will default to 10.

@target@ is whatever is written after the command. [1] designates first set of characters.

!pointleader 1 2 3

1 2 3 is @target@
1 is @target@[1]
2 is @target@[2]
« Last Edit: October 28, 2015, 10:52:34 PM by SinNoAria »

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Command for points/hours leaderboard for chat
« Reply #2 on: October 29, 2015, 02:17:27 AM »
Basically in the command, just put no space, then in the message put the regular command for mods.

Old Name: RepentGamingTV
Twitch: Here

Need help ASAP?
Join Deepbot's Discord: Discord.Deepbot.tv
Deepbot's Twitter: @DeepSupport

MissLorzz

  • Youngling
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
  • Twitch Name: MissLorzz
Re: Command for points/hours leaderboard for chat
« Reply #3 on: October 29, 2015, 07:42:04 AM »
Ah the !top10 one works! I didn't know it was that simple, thought you'll need to chain them up somehow.

Thank you for both of your help, much appreciated! :)

twitchplayspokemonR

  • Youngling
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
  • Twitch Name: twitchplayspokemonR
Re: Command for points/hours leaderboard for chat
« Reply #4 on: February 19, 2016, 07:00:42 AM »
I was looking for the top 10 command and couldnt find it in the documentation so I thought it would be a good idea to leave this here.

Just do !top 10 (with a space) or create the !top10 returning !top 10 for same result.
(Same for !top 1-14)