Post: SlashPlayed Discord Bot -Track your game time
10-12-2017, 03:14 PM #1
1UP
Banned
(adsbygoogle = window.adsbygoogle || []).push({}); I wrote this bot as a slight replacement to xfire and raptr. This bot will track all users game time in a server and allow the user to pull that data back via commands as well as an online profile. The bot is still in testing and new features and tweaks are happening all the time.

NOTE:
SlashPlayed can only log game time while the bot is in the server. In order to show up as a result in a command you must have already started and ended a game at some point while the bot is active in the server.

Nothing special has to be done for the bot to start tracking your time. Simply start a game and it will track it.

Current Features

  • Tracks users in game time and and allows them to view these stats.
  • View your top players on your server with a simple command.
  • View your profile (You must login or register to view this content.) and your guild profile (You must login or register to view this content.)


Commands
All commands start with \played. Example: \played profile

Current Commands

  • \played info
  • \played help
  • \played mytop X (Returns your top X games where X is 1- 10 in a Direct Message. If no number is is added then a default of 5 is set.)
  • \played profile (Returns a link to the user's profile add private to have it messaged to you instead \played profile private
  • \played game X (Return the game time for a specific game \played game Diablo III
  • \played topPlayers (Returns the top 10 players associated with the server.)
  • \played guildProfile (Returns a link to the guilds profile page.)
  • \played botstats (Returns a metrics summary of SlashPlayed's data collection)
  • \played globalPlayers (Returns the top 10 players across all servers.)


Coming soon

  • Opt out / opt back in. If you do not wish to be apart of this you will be able to use a command to stop tracking. Likewise if you wish to opt back in you will be able to.
  • Raptr import



Links
You must login or register to view this content. (Does not require special permissions)
You must login or register to view this content.


Screenshots
You must login or register to view this content.

You must login or register to view this content.

You must login or register to view this content.

You must login or register to view this content.
Last edited by 1UP ; 10-29-2017 at 01:45 PM.

The following 2 users say thank you to 1UP for this useful post:

ROCKY_southpaw, Jon Snow
10-13-2017, 04:15 AM #2
------
Last edited by Glazbee ; 10-23-2019 at 12:49 AM.
10-13-2017, 01:43 PM #3
1UP
Banned
Originally posted by Glazbee View Post
This seems quite redundant with Overwolf and Steam in the mix, though looks like a nice little side project.

With being able to opt out, why not add an identifier which does exactly this? Assuming you are using JSON, and your values are stored as so

     
{"000000000000000000": {"World of Warcraft": 448745524169879, "Cuphead": 64586}}


You could always create a reference to opt-out like so

     
{"000000000000000000": {"optout": false, "World of Warcraft": 448745524169879, "Cuphead": 64586}}


You can then create something simple like so

     
optOut(User) {
let optOut == false;
if(user.id == tracker.{$id} && tracker.{$id}.optout == true) {
optOut == true;
}


You will only need to run this section of code when a users game state changes, there is probably a far better way to implement this, but I'm pretty sure the napkin programming would be enough. Which language are you using?


JSON is horribly slow performance wise with the amount of people we already have using it.

Steam only tracks games that are on steam. Never heard of over wolf.

Opt out is per user, not game. So if someone didn't want to partake in the collection of data it would prevent that. The reason it's on the coming soon is because it isn't a high priority.
10-29-2017, 01:45 PM #4
1UP
Banned
Updated with new commands and examples of profiles.
10-30-2017, 07:58 PM #5
Toke
PC Master Race
Originally posted by Oneup View Post
I wrote this bot as a slight replacement to xfire and raptr. This bot will track all users game time in a server and allow the user to pull that data back via commands as well as an online profile. The bot is still in testing and new features and tweaks are happening all the time.

NOTE:
SlashPlayed can only log game time while the bot is in the server. In order to show up as a result in a command you must have already started and ended a game at some point while the bot is active in the server.

Nothing special has to be done for the bot to start tracking your time. Simply start a game and it will track it.

Current Features

  • Tracks users in game time and and allows them to view these stats.
  • View your top players on your server with a simple command.
  • View your profile (You must login or register to view this content.) and your guild profile (You must login or register to view this content.)


Commands
All commands start with \played. Example: \played profile

Current Commands

  • \played info
  • \played help
  • \played mytop X (Returns your top X games where X is 1- 10 in a Direct Message. If no number is is added then a default of 5 is set.)
  • \played profile (Returns a link to the user's profile add private to have it messaged to you instead \played profile private
  • \played game X (Return the game time for a specific game \played game Diablo III
  • \played topPlayers (Returns the top 10 players associated with the server.)
  • \played guildProfile (Returns a link to the guilds profile page.)
  • \played botstats (Returns a metrics summary of SlashPlayed's data collection)
  • \played globalPlayers (Returns the top 10 players across all servers.)


Coming soon

  • Opt out / opt back in. If you do not wish to be apart of this you will be able to use a command to stop tracking. Likewise if you wish to opt back in you will be able to.
  • Raptr import



Links
You must login or register to view this content. (Does not require special permissions)
You must login or register to view this content.


Screenshots
You must login or register to view this content.

You must login or register to view this content.

You must login or register to view this content.

You must login or register to view this content.


stop spamming my discord thanks, and also ur #1 cus u got no fukin life m9
10-30-2017, 08:50 PM #6
1UP
Banned
Originally posted by Toke View Post
stop spamming my discord thanks, and also ur #1 cus u got no fukin life m9


You don't even have one m8.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo