How to retrieve Destiny stats through Nightbot

Fantastic, thank you very much!!

1 Like

xgerhard,

Nightbot has been working great on our discord server, but yesterday we got a message saying “something went wrong at the bungie servers.”

Ever since then, nightbot will not pull stats, or even respond to any commands whatsoever. I tried disconnecting and reconnecting it to the server, but we still have the same problem. Any insight into how to resolve this issue?

I should also add that I created a test server and had nightbot join, and everything works just fine there.

Thanks!

1 Like

Heya! Thats weird, yesterday there was server maintenance at Bungie (which usually happens at tuesday), so almost all commands would respond the Bungie server error. However when the maintenance was finished, everything should work normally.
Does Nightbot respond to ‘!commands’ ? If not make sure its not banned and that Nightbot has the right role to talk.

1 Like

I made sure the bot has the necessary roles, but it won’t respond to anything at all. Not even !commands

1 Like

Hmm, so on https://beta.nightbot.tv/integrations did you disconnect/connect your account, or did you part/join the server through settings? That last thing I would suggest.

1 Like

I was just disconnecting the account, not parting servers. I just parted the server and re-joined and it works now! Thanks for all your help :slight_smile:

1 Like

is there anyway I can set the command to only show my stats? like gamertag= or username thanks!

1 Like

Yes there is, replace USERNAMEHERE with your gamertag/psn, and replace CONSOLEHERE with xbox or ps in the following command:

!commands add !destiny -cd=5 -ul=everyone $(urlfetch https://2g.be/twitch/destinyv2.php?action=$(querystring)&format=$(provider)&user=$(user)&channel=$(channel)&bot=nightbot&console=CONSOLEHERE&gamertag=USERNAMEHERE)

1 Like

Hey there @xgerhard is there any eta on when we’ll have a command built in for Wrath of the Machine completions?

1 Like

There is already, I just have been slacking updating the command list:
!destiny wotm <username>
Or the long one:
!destiny wrathofthemachine <username>

2 Likes

Is it possible to have it automatically look up the trials kd of a player instead of his overall. My friends viewers have trouble typing !destiny trialskd (user) can you make it so you just need to type !destiny (user) if so how.

1 Like

Yes, the link will just have to be modified to be specifically for that one thing.

Here is one that should do what you need, replace the command name with whatever you want:

!commands add !trialskd $(urlfetch https://2g.be/twitch/destinyv2.php?action=trialskd&format=$(provider)&user=$(user)&channel=$(channel)&bot=nightbot&console=CONSOLEHERE&gamertag=$(touser))

Replace the CONSOLEHERE part with the console you need, and thats it. They can put in a specific gamertag, if they don’t then it will default to their twitch name.

1 Like

thank you it works really good

1 Like

Another thing is it possible to change the website to trials report over destiny tracker because destiny tracker is outdated

1 Like

What do you mean, what’s outdated? The command uses both sites for certain data.

nevermind i put the wrong command in sorry for wasting your times

No problem at all :slight_smile:

sorry to bug you guys again my friend now want it to show weekly trials kd instead of overall sorry im trying to help him set it up

Yeah just copy-paste the command Slikrick posted earlier, just change ‘trialskd’ to ‘trialsweekly’. However this won’t just show the kd but also the matches played and won. There is no seperate one for just weekly trials kd.

I keep getting this when I try and pull stats.
$(urlfetch https://2g.be/twitch/destinyv2.php?user=$(user)&channel=$(channel)&format=$(provider)&query=$(querystring)&bot=nightbot&defaultconsole=ps