Hi, I have a pastebin already set up that is currently working. If I use for example !fetch NAME, it’ll accurately fetch the information I have in the pastebin. But I’d also like for it to be able to fetch with aliases, is that possible or would I have to set up duplicates inside the pastebin and change the names to the aliases?
Currently, it looks a little like this:
“NAME”:
{
“FIRST”:[“DATE”],
“SECOND”:[“DATE”]
},
But essentially I’d want the bot to be able to call for (example):
“NAME” "NAME 2 “NAME 3”:
{
“FIRST”:[“DATE”],
“SECOND”:[“DATE”]
},
The reason is because while in-game certain things I’m tracking have a bit longer names than what we use colloquially, so I’d love if there was a way to simply add something that doesn’t require me having to manually update 3 “name” sections in the pastebin, just to make sure people can find it by using the command with an alias name.
The current Nightbot command I have is one I found in this place for Pokémon multipliers of all things:
$(eval a=JSON.parse(
$(urlfetch json https://pastebin.com/raw/XXXX)
);b=decodeURIComponent($(querystring)
).toUpperCase();if(a[b]){c=b+-
;for(x in a[b]){c+=x+:
+a[b].join(,
)+.
;}c.slice(0,400);}else{No match!
;})