These are chat archives for arenanet/api-cdi

22nd
Sep 2016
Archomeda
@Archomeda
Sep 22 2016 00:05
i've only found #109 and #273, both of which seem pretty similar and/or is already partly implemented, but nothing regarding the individual mastery points
Hrm, I was thinking about arenanet/api-cdi#39 but maybe that's a bit more vague
Archomeda
@Archomeda
Sep 22 2016 00:07
ah well... mastery points didn't exist back then :D
but i suppose it's similar to map completion, except mastery points are account wide
yeah
smiley
@codemasher
Sep 22 2016 08:50
seems like i've broken something important this time https://twitter.com/phpstorm/status/778876798721486848
Archomeda
@Archomeda
Sep 22 2016 13:21
wow, my first time looking at the wvw endpoints... i did not know that /v2/wvw/matches accepts the world parameter
Nabrok
@Nabrok
Sep 22 2016 13:21
Yeah, that's so useful.
Archomeda
@Archomeda
Sep 22 2016 13:21
very
Edgar Doiron
@Coffee4cr
Sep 22 2016 13:35
@Nabrok just got your bot working/setup in my discord server. Good job on it!
Nabrok
@Nabrok
Sep 22 2016 13:55
Thanks
Nabrok
@Nabrok
Sep 22 2016 15:44
@Archomeda testing your PR, not seeing those error messages you were talking about.
Archomeda
@Archomeda
Sep 22 2016 15:45
no, they should be fixed with my last commit :smile:
Nabrok
@Nabrok
Sep 22 2016 15:45
ah, ok
Nabrok
@Nabrok
Sep 22 2016 16:20
@Archomeda I made a little change so that it'll always put the primary world first.
Edgar Doiron
@Coffee4cr
Sep 22 2016 16:40
lol I built a !help, only to notice that you did it yesterday also
LOL
blob
Archomeda
@Archomeda
Sep 22 2016 16:41
@Nabrok cool, didn't think of that ^^
hahaha, well that help looks good though @Coffee4cr
also, the redis inclusion in your commit was interesting :P
Nabrok
@Nabrok
Sep 22 2016 16:45
The redis inclusion?
Archomeda
@Archomeda
Sep 22 2016 16:45
meant for @Coffee4cr
Edgar Doiron
@Coffee4cr
Sep 22 2016 16:45
@Archomeda yeah... i'm a github noob, and i'm hosting the bot on c9, and redis wasn't installed
Nabrok
@Nabrok
Sep 22 2016 16:45
Ah
@Coffee4cr does that help respect disabled features?
Edgar Doiron
@Coffee4cr
Sep 22 2016 16:47
my help?
no
lol
I could probably make it so
but I like yours that it whispers back
doesn't spam the chat
Nabrok
@Nabrok
Sep 22 2016 16:48
ok, I'm probably going to rework the help at some point so it can just send one message instead of several.
Edgar Doiron
@Coffee4cr
Sep 22 2016 16:48
just concatenate them in a single string?
like I did
Archomeda
@Archomeda
Sep 22 2016 16:49
i wished we were able to send colored messages
Nabrok
@Nabrok
Sep 22 2016 16:49
Yeah, but the message send is actually in the feature code, and each feature does it's own send when it sees !help.
Edgar Doiron
@Coffee4cr
Sep 22 2016 16:49
@Archomeda yeah, i'm using single tick and triple tick to get stuff "highlited"
@Nabrok ah, lol I was trying to see where you were catching !help
Archomeda
@Archomeda
Sep 22 2016 16:50
if i'm formatting messages on discord, i use stuff like :small_blue_diamond: :small_orange_diamond: etc
Edgar Doiron
@Coffee4cr
Sep 22 2016 16:51
@Nabrok the motd feature doesn't seem to work though
Nabrok
@Nabrok
Sep 22 2016 16:51
Hmm
Edgar Doiron
@Coffee4cr
Sep 22 2016 16:51
it's suppose to change the description of the room?
Nabrok
@Nabrok
Sep 22 2016 16:51
My guild motd hasn't changed in a while, I'll check it out.
yes
Edgar Doiron
@Coffee4cr
Sep 22 2016 16:51
and if i refresh motd
it should do it?
Nabrok
@Nabrok
Sep 22 2016 16:52
yes
Obivously you need motd_channel set in the config
and a key from the guild leader
Archomeda
@Archomeda
Sep 22 2016 16:53
the command is motd refresh
the bot replies that it's updated for me, so i suppose it still works
Edgar Doiron
@Coffee4cr
Sep 22 2016 16:53
yeah i get the reply but not the update :P
Archomeda
@Archomeda
Sep 22 2016 16:53
oh lol
Nabrok
@Nabrok
Sep 22 2016 16:54
Is it a recent change to the motd?
Edgar Doiron
@Coffee4cr
Sep 22 2016 16:54
no I haven't touched it
Nabrok
@Nabrok
Sep 22 2016 16:54
ok, I gotta grab some lunch. I'll take a look at it when I get back.
Edgar Doiron
@Coffee4cr
Sep 22 2016 16:55
I just tried a different channel ID
and still nothing
[12:55 PM] Edgar Doiron: motd refresh
[12:55 PM] BOTford-bot: Message of the day updated.
Archomeda
@Archomeda
Sep 22 2016 16:56
let me test it again
yay for having a test server
Edgar Doiron
@Coffee4cr
Sep 22 2016 16:57
lol
Archomeda
@Archomeda
Sep 22 2016 16:57
i just saw it being updated automatically
Edgar Doiron
@Coffee4cr
Sep 22 2016 16:57
god damn it
unless, is there privelege I need to grant the bot?
Archomeda
@Archomeda
Sep 22 2016 16:58
is there even a mention in /v2/guild/:id/log?
for the motd?
regarding permissions, well, the bot should have manage channels iirc
Edgar Doiron
@Coffee4cr
Sep 22 2016 17:00
blob
Archomeda
@Archomeda
Sep 22 2016 17:01
i hope i didn't break anything last time when i integrated automatic url formatting
/v2/guild/:id is turned on right? Might be easier to get the motd from there
Archomeda
@Archomeda
Sep 22 2016 17:05
apparently it is
i suppose when @Nabrok wrote this, it wasn't yet activated
I'm ... not sure why it isn't spitting out the motd for me though
Archomeda
@Archomeda
Sep 22 2016 17:06
sadly, it doesn't show when the motd has been changed
only the log does that
ah dang
Archomeda
@Archomeda
Sep 22 2016 17:07
but it does show the motd for me
the key I was using didn't have the guilds permission >_>
Archomeda
@Archomeda
Sep 22 2016 17:08
does the key owner also have to be leader for /v2/guild/:id?
nope!
anyone in the guild can access it
Archomeda
@Archomeda
Sep 22 2016 17:08
then it's only for ranks and members right?
lemme check the configs
members/log/ranks/treasury/stash/upgrades/teams all require leadership
inventory/"" are the only ones that don't
(and inventory isn't turned on)
Archomeda
@Archomeda
Sep 22 2016 17:09
oh bleh :(
I thought I had relaxed some of those
ranks/treasury/stash seem like easy things to relax, since there's not that much to gain from it
but I do want to keep membership bits restricted
Archomeda
@Archomeda
Sep 22 2016 17:11
even upgrades?
oh, upgrades should be fine too
Archomeda
@Archomeda
Sep 22 2016 17:12
it's not very beneficial for me atm, since i have my guild leader's api key for that bot
:P
Archomeda
@Archomeda
Sep 22 2016 17:12
otherwise i don't have access to the member list anyway :smile:
Ugh I really should just do the legwork to add the checkbox to the client
I wonder how much of a pain that would be
Archomeda
@Archomeda
Sep 22 2016 17:14
well, seeing as the list has been bloated recently, i don't think it's that much of a pain?
someone should really do a pass on that list to sort, rename and make better descriptions for them
oh I mean getting buy-in from whoever manages those bits
Archomeda
@Archomeda
Sep 22 2016 17:15
and maybe even group them
oh
Edgar Doiron
@Coffee4cr
Sep 22 2016 17:15
@Archomeda @Nabrok my key is the guild leader
Archomeda
@Archomeda
Sep 22 2016 17:16
while you're at it, do you think you can accomplish getting them to separate the invite permission and manage members permission into different permissions? :D
i think my guild leader wants that for 4 years now XD
@Coffee4cr i have no clue what is going wrong
Edgar Doiron
@Coffee4cr
Sep 22 2016 17:19
ah well
wasn't really a feature i needed
:P
Archomeda
@Archomeda
Sep 22 2016 17:20
does the bot overwrite the channel description with an empty string?
or does it not touch it at all?
Edgar Doiron
@Coffee4cr
Sep 22 2016 17:22
            console.log('setting channel MOTD');
            bot.setChannelTopic(channel, text, next_channel);
            console.log('Done setting channel MOTD');
i don't even see that log
so it doesn't even reach it
Archomeda
@Archomeda
Sep 22 2016 17:23
and you are sure you've set the channel correctly in the config?
Edgar Doiron
@Coffee4cr
Sep 22 2016 17:23
function messageReceived(message) {
    if (! message.channel.isPrivate) return;
    if (message.content.match(new RegExp("^!?"+phrases.get("MOTD_REFRESH")+'$', 'i'))) {
        message.channel.startTyping(function() {
            gw2.request('/v2/guild/'+guild_id+'/log', guild_key, function() {
                message.channel.stopTyping(function() {
                    message.reply(phrases.get("MOTD_UPDATED"));
                });
            });
        });
    }
}
but that doesn't call it, right?
just post the message
Archomeda
@Archomeda
Sep 22 2016 17:24
apparently @Nabrok made it in such a way that whenever a gw2 api request is being made, all the hooks are getting called
Edgar Doiron
@Coffee4cr
Sep 22 2016 17:24
@Archomeda motd_channel = "70845115005939712" # Will set the channel description to the guild motd
Archomeda
@Archomeda
Sep 22 2016 17:24
and updating the motd is a hook
ah, that's the problem
motd_channel = "main" # Will set the channel description to the guild motd
should just be text
Edgar Doiron
@Coffee4cr
Sep 22 2016 17:25
lol
oh
I dropped the id
Archomeda
@Archomeda
Sep 22 2016 17:31
does it work now? :D
Edgar Doiron
@Coffee4cr
Sep 22 2016 17:33
note to self, do not use markup in MOTD
blob
Archomeda
@Archomeda
Sep 22 2016 17:33
you mean ~~? :P
Edgar Doiron
@Coffee4cr
Sep 22 2016 17:33
yes
lol
Archomeda
@Archomeda
Sep 22 2016 17:34
hahahaaha
Edgar Doiron
@Coffee4cr
Sep 22 2016 17:34
thanks though, works now
Archomeda
@Archomeda
Sep 22 2016 17:35
less known feature on discord, you can actually click on the description to get a popup window
Edgar Doiron
@Coffee4cr
Sep 22 2016 17:35
yep
just noticed
and it's formatted with all the newlines too
Archomeda
@Archomeda
Sep 22 2016 17:35
yeah, and trimmed
because our guild motd is always fucked up with extra spaces for some odd reason
or extra newlines
but yay for auto linking :tada:
Edgar Doiron
@Coffee4cr
Sep 22 2016 17:36
lol
Archomeda
@Archomeda
Sep 22 2016 17:37
it's still funny actually that discord formats the channel description
but it's cool though
(i still want colored text)
Archomeda
@Archomeda
Sep 22 2016 17:43
@queicherius cool update ^^
David Reeß
@queicherius
Sep 22 2016 17:44
WHO THE HELL SALVAGES 14 MILLION ITEMS GOD DAMN
I mean thanks :D
Edgar Doiron
@Coffee4cr
Sep 22 2016 17:50
lol
Archomeda
@Archomeda
Sep 22 2016 17:56
omfg :D
i don't even have 100k XD
also, fun thing i decided to test, apparently you can log in multiple times on a discord bot
at the same time
Nabrok
@Nabrok
Sep 22 2016 18:01
@Coffee4cr you got it working?
Archomeda
@Archomeda
Sep 22 2016 18:02
omfg who the hell has 15 ghostly infusions >_>

Played for 792h

fml

Nabrok
@Nabrok
Sep 22 2016 18:06

apparently @Nabrok made it in such a way that whenever a gw2 api request is being made, all the hooks are getting called

yeah, the way it's setup if I ever call the log for any other reason, this way it will update the motd with that as well.

As for colored text, discord does support some syntax highlighting in code blocks, so you'd think it wouldn't be too difficult for them to add it.
I've also considered for certain things like the wvw score generating a png and sending that.
Archomeda
@Archomeda
Sep 22 2016 18:10
of course it isn't hard for them to add, the names are also colored based on your role
the only thing that's probably holding them back, is that if they allow it, it can get crazy very fast
plus, there's the light and dark theme
Nabrok
@Nabrok
Sep 22 2016 18:10
yes, the guildwars2 subbreddit discord is already pretty crazy
Archomeda
@Archomeda
Sep 22 2016 18:10
they can solve this by only allowing a subset of colors that have both a light and dark variant
i... uh... joined for 5 minutes before leaving again
Nabrok
@Nabrok
Sep 22 2016 18:11
They must do something like that already for the syntax highlighting? I haven't really looked into it that much though.
Archomeda
@Archomeda
Sep 22 2016 18:11
hmm, probably
tables is another thing that would be awesome
basically, more markdown :D
Edgar Doiron
@Coffee4cr
Sep 22 2016 18:14
[2:03 PM] Jeff: Training story from today:
Me:   "OK.. now press the letter "O" on your keyboard"
She:  Presses "O"... program starts to do unusual stuff
Me: "That's weird.  I've never seen it do that before"
She:  "Was I supposed to let go?"
Me:  "Huh?...."
She: "I was holding the "O" key down.  You said press it, but you didn't say let go of it"
Me: "Yes, let go of it.  Press implies pressing once and letting go"
She: "OK... gotcha.."
Me:  Invisible facepalm
@Nabrok yeah it's working :D
Nabrok
@Nabrok
Sep 22 2016 18:14
haha. Almost on the level of "where's the any key?"
Edgar Doiron
@Coffee4cr
Sep 22 2016 18:14
@Nabrok I'm blaming bad documentation
Archomeda
@Archomeda
Sep 22 2016 18:14
lol
Nabrok
@Nabrok
Sep 22 2016 18:15
I'll take that criticism. I need to write better docs.
Edgar Doiron
@Coffee4cr
Sep 22 2016 18:16
@Archomeda yeah I don't know why they don't support full markdown? doesn't it come like in a markdown bundle?
lol
like support HTML tags, or support BBCODE
Archomeda
@Archomeda
Sep 22 2016 18:17
they might have disabled stuff
Nabrok
@Nabrok
Sep 22 2016 18:17
They might have done their own implementation
Archomeda
@Archomeda
Sep 22 2016 18:17
or that
Edgar Doiron
@Coffee4cr
Sep 22 2016 18:17
@Nabrok I had my channel ID instead of name, in the MOTD channel
reinventing the wheel
man, those programmers aren't lazy enough
Archomeda
@Archomeda
Sep 22 2016 18:17
oh @Nabrok, what do you think of adding the feature to request other people's stuff? like as in !fractal level @Nabrok
not sure if people would like it though
Edgar Doiron
@Coffee4cr
Sep 22 2016 18:18
yes please!
Nabrok
@Nabrok
Sep 22 2016 18:18
Hmm
Archomeda
@Archomeda
Sep 22 2016 18:18
as in privacy concerns
Edgar Doiron
@Coffee4cr
Sep 22 2016 18:18
they're your guild mates
David Reeß
@queicherius
Sep 22 2016 18:19
@Coffee4cr They probably disabled HTML because discord is build with Electron and enabling HTML would give a super high thread of XSS attacks. That's why Github ignores nearly all html tags as well. I only got font to work once.
Edgar Doiron
@Coffee4cr
Sep 22 2016 18:19
that's like the new guy (noob) we recruited yesterday. Playing thief.. we ask him to ping his armor/trinkets so we could help him build better
his armor was all over the place
ranging from 50 blues, to 80 exotic and like 70 yellows
haha
in all shape and stats
Nabrok
@Nabrok
Sep 22 2016 18:19
Probably just whatever he got while leveling.
Archomeda
@Archomeda
Sep 22 2016 18:19
@Coffee4cr well for that to work better, the !build command should be improved first :P
Edgar Doiron
@Coffee4cr
Sep 22 2016 18:20
yes
Archomeda
@Archomeda
Sep 22 2016 18:20
@queicherius doesn't a also work?
Nabrok
@Nabrok
Sep 22 2016 18:20
A gear inspect would probably be in a separate command
Edgar Doiron
@Coffee4cr
Sep 22 2016 18:20
@queicherius I wasn't saying why they didn't support html, I was wondering, if markdown came in a package
so like you say we support markdown (it supports ALL of it)
Nabrok
@Nabrok
Sep 22 2016 18:21
The games stores your different pve/wvw specs, but you have to swap the gear yourself.
Edgar Doiron
@Coffee4cr
Sep 22 2016 18:21
yeah
David Reeß
@queicherius
Sep 22 2016 18:21
Ah I see. Only saw your last message, my bad.
Archomeda
@Archomeda
Sep 22 2016 18:21
!build can at least include the skills as well
Edgar Doiron
@Coffee4cr
Sep 22 2016 18:21
one day right? we will be able to have armor stats per area you play in
David Reeß
@queicherius
Sep 22 2016 18:21
Wasnt there some drama around the name markdown? And then people called stuff "Common Mark" etc?
Nabrok
@Nabrok
Sep 22 2016 18:21
Are skills in the API now? I didn't see it.
queicherius @queicherius scratches head
Edgar Doiron
@Coffee4cr
Sep 22 2016 18:22
@Archomeda is skill visible in the API?
Archomeda
@Archomeda
Sep 22 2016 18:22
oh eh...
i didn't check
Edgar Doiron
@Coffee4cr
Sep 22 2016 18:22
@lye :fire: we need skill
Archomeda @Archomeda hides in a corner in shame
Edgar Doiron
@Coffee4cr
Sep 22 2016 18:23
@queicherius to tell you the truth, I learned about markdown when playing in discord, and then notice... hmmm, this looks like the reddit syntax
haha
David Reeß
@queicherius
Sep 22 2016 18:25
Haha :D
Archomeda
@Archomeda
Sep 22 2016 18:26
i was amazed really that discord supports strikethrough
from experience from various online services, most services don't make this available
well, "most" being relative, i don't remember how much anymore
can't even think of anything atm either... eh
Nabrok
@Nabrok
Sep 22 2016 18:27
Having a strikethrough is nice when you can edit your old posts.
Archomeda
@Archomeda
Sep 22 2016 18:28
hey, can we vote for having markdown support in guild motd and squad messages?
or, partially i suppose
well, that's true @Nabrok
Edgar Doiron
@Coffee4cr
Sep 22 2016 18:33

hey, can we vote for having markdown support in guild motd and squad messages?

yes!

isn't the full UI in Html anyways?
i know the gemstore is
Archomeda
@Archomeda
Sep 22 2016 18:33
not the whole UI iirc
there's two systems i think
one is native and one is based on html
Edgar Doiron
@Coffee4cr
Sep 22 2016 18:34
coherent ui
Nabrok
@Nabrok
Sep 22 2016 18:34
the trading post is
Archomeda
@Archomeda
Sep 22 2016 18:34
e.g. inventory, hero, etc are native
but tp, guild treasury and guild upgrade panels are coherent ui
Nabrok
@Nabrok
Sep 22 2016 18:35
Remember that the motd has to work both in the guild panel and in the chat window.
Archomeda
@Archomeda
Sep 22 2016 18:36
meh, even if it's just basic features like italic and bold i would be fine
Edgar Doiron
@Coffee4cr
Sep 22 2016 18:38
bullet points
lol
Archomeda
@Archomeda
Sep 22 2016 18:43
  • well
  • that would be nice
  • too
even discord doesn't support that :(
Edgar Doiron
@Coffee4cr
Sep 22 2016 18:44
oh you're right
lol
I've been using Trello way too much
Archomeda
@Archomeda
Sep 22 2016 18:44
:small_blue_diamond: that's why i'm using
:small_blue_diamond: this
:small_blue_diamond: as an alternative
it's a pain though
Nabrok
@Nabrok
Sep 22 2016 18:49
I am impatient for my account to get crawled on gw2efficiency
Jonathan Andrist
@rwfrk_twitter
Sep 22 2016 18:54
GW2E patch, GW2 Patch, All we need is an API release for the trifecta! (/gliders?) =)
Nabrok
@Nabrok
Sep 22 2016 19:17
I did not know that the wvw achievements continued counting after they were finished.
I might have to make some guild leaderboards.
David Reeß
@queicherius
Sep 22 2016 19:59
@Nabrok The pvp achievements do that too :)
Nabrok
@Nabrok
Sep 22 2016 20:00
Nice. Not so much pvp activity in my guild though.
I've killed 23,651 people in pvp
and 69,845 in wvw
And to show how much of a border player I am ... I've only taken stonemist 62 times.
David Reeß
@queicherius
Sep 22 2016 20:03
I have taken stonemist... 2 times
;_;
Nabrok
@Nabrok
Sep 22 2016 20:05
But you probably don't wvw for 4+ hours 3 nights a week (at least).
By the way what do you use to calculate liquid gold?
David Reeß
@queicherius
Sep 22 2016 20:10
Sell price
Archomeda
@Archomeda
Sep 22 2016 20:10

Your account did not get crawled yet or your API key does not allow for this statistic to be generated

bleh

Nabrok
@Nabrok
Sep 22 2016 20:11
sell price of materials + wallet gold?
David Reeß
@queicherius
Sep 22 2016 20:11
Patience!
No, sell price of everything on your account you can sell (aka is not bound to you) + wallet gold + what's in your tp (all with appropriate TP tax where needed)
Nabrok
@Nabrok
Sep 22 2016 20:12
ok
and the playtime/day ... is that averge (total time/number days) or actually looking at how much your playtime increases each day?
David Reeß
@queicherius
Sep 22 2016 20:14
That's the average (total time / days since your oldest character)
Nabrok
@Nabrok
Sep 22 2016 20:15
Interesting, there's quite a bit more movement there than I would have thought (dropped 30 seconds since the 12th).
smiley
@codemasher
Sep 22 2016 20:58
found a funny screenshot
browsertypes_may.PNG
(stats for worldofpadman.com, may 2007)
Archomeda
@Archomeda
Sep 22 2016 21:00
@Nabrok, i'm currently trying to get a wiki command working
Discord_2016-09-22_22-59-46.png
Nabrok
@Nabrok
Sep 22 2016 21:01
nice
Archomeda
@Archomeda
Sep 22 2016 21:01
sadly, there's also things like this
Discord_2016-09-22_23-01-31.png
also, most helpful wiki description ever
i do !wiki cat

i get:

Cats are feline animals found all over Tyria.

Archomeda
@Archomeda
Sep 22 2016 21:14
but, it's amazing what this does
it tries to grab the first paragraph on the page that makes sense
and sends it back
sadly, because of the way mediawiki is programmed, the title is case sensitive :(
unless someone made a lowercase redirect on the wiki
Nabrok
@Nabrok
Sep 22 2016 21:16
Does the wiki have an api?
Archomeda
@Archomeda
Sep 22 2016 21:16
yup
i couldn't find a mediawiki to markdown parser, so i just grab the html and strip a bunch of stuff
smiley
@codemasher
Sep 22 2016 21:21
dunno if this could be of any help link
AHRG
Y U DO DIS GITTER
Archomeda
@Archomeda
Sep 22 2016 21:22
what's it do?
smiley
@codemasher
Sep 22 2016 21:23
i scraped the wiki API
Archomeda
@Archomeda
Sep 22 2016 21:25
ah
smiley
@codemasher
Sep 22 2016 21:25
i think i have another script where i scraped the gw2wiki api but don't ask me where
Archomeda
@Archomeda
Sep 22 2016 21:25
well, i just grab the text of the page :P
smiley
@codemasher
Sep 22 2016 21:26
nah, more the preg matching :P
Archomeda
@Archomeda
Sep 22 2016 21:26
all the other wiki api stuff is too complicated for me
Archomeda
@Archomeda
Sep 22 2016 21:38
in any case, i'm gonna test this command for a while to see if everything works as expected
Archomeda
@Archomeda
Sep 22 2016 22:06
well okay... just letting this run in the wild in my guild discord
we've already found out that "Pasta" redirects to "Pasta Noodles"
smiley
@codemasher
Sep 22 2016 22:11
nom